Function at 0x10051763
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085e0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x148], 8
mov dword [ebp - 0x2c], 0xfffffffd
mov dword [ebp - 0x30], 0x2ff18c9a
mov dword [ebp - 0x3c], 0xfffffffb
mov dword [ebp - 0x154], 2
mov dword [ebp - 0x48], 0
jmp 0x100517c1
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 4
jge 0x100517d7
mov eax, dword [ebp - 0x48]
mov dword [ebp + eax*4 - 0xcc], 0x5252cb13
jmp 0x100517ba
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x18c], eax
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0xcc], 1
jl 0x10051806
mov dword [ebp - 0x11c], 1
jmp 0x1005180d
and dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x148], eax
jne 0x10051830
mov dword [ebp - 0x108], 1
jmp 0x10051837
and dword [ebp - 0x108], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xcc]
push 4
pop ecx
shl ecx, 0
add eax, dword [ebp + ecx - 0xcc]
cmp eax, dword [ebp - 0x108]
je 0x10051864
mov dword [ebp - 0x90], 1
jmp 0x1005186b
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x194], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x184], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push 4
pop ecx
imul ecx, ecx, 0
add eax, dword [ebp + ecx - 0xcc]
cmp eax, 0x97b09b37
jae 0x100518cd
mov dword [ebp - 0x110], 1
jmp 0x100518d4
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x110]
cmp eax, dword [ebp - 0x2c]
je 0x100518ee
mov dword [ebp - 0x14c], 1
jmp 0x100518f5
and dword [ebp - 0x14c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x190], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x3c], 0x23637b30
cmp dword [ebp - 0x3c], 0
jle 0x10051934
mov dword [ebp - 0x98], 1
jmp 0x1005193b
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x98]
test eax, eax
jne 0x10051958
cmp dword [ebp - 0x2c], 0
jne 0x10051958
and dword [ebp - 0x118], 0
jmp 0x10051962
mov dword [ebp - 0x118], 1
cmp dword [ebp - 0x118], 1
je 0x10051984
mov dword [ebp - 0x178], 0xfffffff7
mov dword [ebp - 0x178], 1
jmp 0x10051a52
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x100519fb
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x24], eax
jg 0x100519a5
mov dword [ebp - 0xa0], 1
jmp 0x100519ac
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0x4a9ff1db
jle 0x100519c4
mov dword [ebp - 0x120], 1
jmp 0x100519cb
and dword [ebp - 0x120], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x120]
sub eax, ecx
cmp eax, dword [ebp - 0x24]
je 0x100519f4
mov dword [ebp - 0xa8], 1
jmp 0x100519fb
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x154]
cmp dword [ebp - 0x3c], eax
je 0x10051a24
mov dword [ebp - 0x128], 1
jmp 0x10051a2b
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x128], eax
jne 0x10051a42
mov dword [ebp - 0xb0], 1
jmp 0x10051a49
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x64]
mov dword [eax], 0xc
jmp 0x10051a83
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0xffffffe2
jg 0x100521fe
mov dword [ebp - 0x18], 0xfffffffc
mov dword [ebp - 0x10], 0
jmp 0x10051aa6
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10051abc
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x1e4], 0x204e2db5
jmp 0x10051a9f
mov dword [ebp - 0x10], 0
jmp 0x10051acc
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10051ae2
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x1d8], 0xee41
jmp 0x10051ac5
mov dword [ebp - 0x18], 2
jmp 0x10051af2
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10051b0f
mov dword [ebp - 0x170], 0x97f0a290
cmp dword [ebp - 0x170], 0
je 0x10051b0d
jmp 0x10051b0f
jmp 0x10051aeb
mov dword [ebp - 0x18], 0
jmp 0x10051b1f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 6
je 0x10051b3b
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10051b39
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
jmp 0x10051b18
mov dword [ebp - 0x40], 0xecaa7054
mov dword [ebp - 0x1c], 0xea5d6c05
mov dword [ebp - 0x12c], 0x27fa3dfa
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x68], 0xb0badcab
mov dword [ebp - 0x15c], 0x46153b72
mov dword [ebp - 0x1a4], 0x5adf
mov dword [ebp - 0x34], 0
jmp 0x10051b85
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jge 0x10051b9b
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x1b8], 0xfffffffd
jmp 0x10051b7e
mov dword [ebp - 0x1c], 0xffffffe4
jmp 0x10051bab
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x10051e54
push 1
lea ecx, [ebp - 0x80]
call fcn.10018221
and dword [ebp - 4], 0
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0x44], 0
jmp 0x10051bdd
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x10051bf6
push dword [ebp - 0x44]
lea ecx, [ebp - 0x80]
call fcn.100182ab
mov dword [eax], 0xe6a4137d
jmp 0x10051bd6
mov esi, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
sub esi, dword [eax]
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
cmp esi, dword [eax]
je 0x10051c1f
mov dword [ebp - 0x174], 1
jmp 0x10051c26
and dword [ebp - 0x174], 0
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
cmp dword [eax], 0x4dfd9964
jge 0x10051c44
mov dword [ebp - 0x130], 1
jmp 0x10051c4b
and dword [ebp - 0x130], 0
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [eax]
jle 0x10051c6b
mov dword [ebp - 0xb8], 1
jmp 0x10051c72
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
sub eax, 0xa6d7
je 0x10051c83
cmp dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x60]
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
cmp esi, dword [eax]
jle 0x10051ca0
mov dword [ebp - 0x138], 1
jmp 0x10051ca7
and dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x138]
sub eax, dword [ebp - 0xd4]
jne 0x10051cc4
cmp dword [ebp - 0x68], 0
jne 0x10051cc4
and dword [ebp - 0x140], 0
jmp 0x10051cce
mov dword [ebp - 0x140], 1
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x140], eax
jle 0x10051ce5
mov dword [ebp - 0x10c], 1
jmp 0x10051cec
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10c], eax
jne 0x10051d0c
cmp dword [ebp - 0xd4], 0
je 0x10051d0c
mov dword [ebp - 0xdc], 1
jmp 0x10051d13
and dword [ebp - 0xdc], 0
mov dword [ebp - 0x12c], 0xffff
mov esi, dword [ebp - 0x12c]
neg esi
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
mov ecx, dword [ebp - 0xdc]
add ecx, dword [eax]
cmp esi, ecx
jl 0x10051d47
mov dword [ebp - 0x114], 1
jmp 0x10051d4e
and dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 0
je 0x10051d63
mov dword [ebp - 0xe4], 1
jmp 0x10051d6a
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0x60], 0x70c1
jne 0x10051d85
mov eax, 0x6798
test eax, eax
jne 0x10051d85
and dword [ebp - 0x13c], 0
jmp 0x10051d8f
mov dword [ebp - 0x13c], 1
mov eax, dword [ebp - 0x13c]
sub eax, 0xf725
cmp eax, dword [ebp - 0x60]
jne 0x10051da8
mov dword [ebp - 0x70], 1
jmp 0x10051dac
and dword [ebp - 0x70], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x70]
mov dword [ebp + eax - 0x1b8], ecx
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x70], eax
je 0x10051dcf
mov dword [ebp - 0xec], 1
jmp 0x10051dd6
and dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 0xfffffff7
jle 0x10051deb
mov dword [ebp - 0x84], 1
jmp 0x10051df2
and dword [ebp - 0x84], 0
push 0
lea ecx, [ebp - 0x80]
call fcn.100182ab
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [eax]
je 0x10051e12
mov dword [ebp - 0xf4], 1
jmp 0x10051e19
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0xf4], eax
jge 0x10051e30
mov dword [ebp - 0x134], 1
jmp 0x10051e37
and dword [ebp - 0x134], 0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x15c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.100182a6
jmp 0x10051ba4
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x74], 0xce2949f4
mov dword [ebp - 0x14], 0x9d60a221
mov dword [ebp - 0x50], 0
jmp 0x10051e83
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jge 0x10051e99
mov eax, dword [ebp - 0x50]
mov dword [ebp + eax*4 - 0x1cc], 0xa2ef
jmp 0x10051e7c
cmp dword [ebp - 0x28], 0xffff
jb 0x10051eae
mov dword [ebp - 0xfc], 1
jmp 0x10051eb5
and dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0xfc]
jge 0x10051ef6
xor eax, eax
inc eax
je 0x10051ed7
cmp dword [ebp - 0x28], 0
je 0x10051ed7
mov dword [ebp - 0x124], 1
jmp 0x10051ede
and dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x124]
add eax, dword [ebp - 0x28]
jne 0x10051ef6
and dword [ebp - 0x104], 0
jmp 0x10051f00
mov dword [ebp - 0x104], 1
cmp dword [ebp - 0x104], 0xffff
ja 0x10051f18
mov dword [ebp - 0x144], 1
jmp 0x10051f1f
and dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x144], eax
je 0x10051f36
mov dword [ebp - 0xbc], 1
jmp 0x10051f3d
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
add eax, 0xa
cmp eax, 0xfffffff8
ja 0x10051fbc
mov dword [ebp - 0x19c], 0xfffffffd
mov dword [ebp - 0x1ac], 0x348f4a8f
mov dword [ebp - 0xd0], 0x29ef
mov dword [ebp - 0x5c], 0
jmp 0x10051f79
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 2
jge 0x10051f8f
mov eax, dword [ebp - 0x5c]
mov dword [ebp + eax*4 - 0x1c0], 7
jmp 0x10051f72
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x10051faa
push 0x138b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0xd0]
dec eax
mov dword [ebp - 0xd0], eax
jmp 0x1005204a
mov dword [ebp - 0x58], 0x2b8e
mov dword [ebp - 0x38], 0xb8eb
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x58], eax
je 0x10051fe5
mov dword [ebp - 0x16c], 1
jmp 0x10051fec
and dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x14], eax
jge 0x10052000
mov dword [ebp - 0x164], 1
jmp 0x10052007
and dword [ebp - 0x164], 0
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x38]
jle 0x1005201e
mov dword [ebp - 0xd8], 1
jmp 0x10052025
and dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 0
jne 0x1005203a
mov dword [ebp - 0xe0], 1
jmp 0x10052041
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x14], 0
jmp 0x1005205a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jg 0x10052130
mov dword [ebp - 0x6c], 0xfffffff7
cmp dword [ebp - 0x6c], 0
jne 0x1005207d
mov dword [ebp - 0xf0], 1
jmp 0x10052084
and dword [ebp - 0xf0], 0
cmp dword [ebp - 0x74], 0
je 0x10052096
mov dword [ebp - 0xe8], 1
jmp 0x1005209d
and dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe8], 0x761b
jge 0x100520b5
mov dword [ebp - 0x150], 1
jmp 0x100520bc
and dword [ebp - 0x150], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x6c]
cmp dword [ebp - 0xf0], eax
jle 0x100520df
mov dword [ebp - 0xf8], 1
jmp 0x100520e6
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xf8], eax
jle 0x100520fd
mov dword [ebp - 0x100], 1
jmp 0x10052104
and dword [ebp - 0x100], 0
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x100], eax
jge 0x1005211b
mov dword [ebp - 0x88], 1
jmp 0x10052122
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x74], eax
jmp 0x10052053
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x40]
cmp dword [eax], ecx
jg 0x10052149
mov dword [ebp - 0x8c], 1
jmp 0x10052150
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x40]
add eax, 7
cmp dword [ebp - 0x8c], eax
jle 0x1005216a
mov dword [ebp - 0x94], 1
jmp 0x10052171
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x94], eax
je 0x10052188
mov dword [ebp - 0x9c], 1
jmp 0x1005218f
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x9c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa4]
or edx, 0xffffffff
sub edx, dword [ecx]
cmp dword [eax], edx
jne 0x100521c7
mov dword [ebp - 0xac], 1
jmp 0x100521ce
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0x25452e2c
jle 0x100521e6
mov dword [ebp - 0xb4], 1
jmp 0x100521ed
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x168], eax
jmp 0x10051a78
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x4c], 0
jmp 0x10052215
mov eax, dword [ebp - 0x4c]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xfffffff7
jg 0x10052257
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x54], 0xb
jmp 0x10052232
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x16
jge 0x10052255
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x10052253
push 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ShowOwnedPopups]
jmp 0x1005222b
jmp 0x1005220e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret