Function at 0x431039
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
push esi
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x38], 0
jmp 0x43105a
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jge 0x431112
push 1
lea ecx, [ebp - 0x174]
call fcn.0041796c
mov dword [ebp - 0x2c], 0
jmp 0x431081
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x43109d
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x174]
call fcn.00417a5a
mov dword [eax], 0x22124f84
jmp 0x43107a
push 0
lea ecx, [ebp - 0x174]
call fcn.00417a5a
and dword [eax], 0
jmp 0x4310d3
push 0
lea ecx, [ebp - 0x174]
call fcn.00417a5a
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xcc]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x174]
call fcn.00417a5a
cmp dword [eax], 5
jge 0x431102
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x431100
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_RemovePropA]
jmp 0x4310af
lea ecx, [ebp - 0x174]
call fcn.00417a3e
jmp 0x431053
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x431c01
mov dword [ebp - 4], 0x8872fa4a
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x54], 0x5f7f
push 2
lea ecx, [ebp - 0xec]
call fcn.0041796c
mov dword [ebp - 0x34], 0
jmp 0x431150
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jge 0x43116c
push dword [ebp - 0x34]
lea ecx, [ebp - 0xec]
call fcn.00417a5a
mov dword [eax], 0xfffffff7
jmp 0x431149
imul eax, dword [ebp - 4], 0xfffffff6
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 0x58cb66c5]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 4], 0x5f9c
jg 0x4311a4
mov dword [ebp - 0x128], 1
jmp 0x4311ab
and dword [ebp - 0x128], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x128], eax
je 0x4311c2
mov dword [ebp - 0xf0], 1
jmp 0x4311c9
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xf0], eax
je 0x4311dd
mov dword [ebp - 0x80], 1
jmp 0x4311e1
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x80], eax
jne 0x4311f5
mov dword [ebp - 0xf8], 1
jmp 0x4311fc
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 1
jb 0x431767
push 1
lea ecx, [ebp - 0x160]
call fcn.0041796c
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x74], 9
mov dword [ebp - 0x150], 0xfffffff7
mov dword [ebp - 0xc], 0
jmp 0x43123e
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x431251
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x28], 0xfffffffe
jmp 0x431237
mov dword [ebp - 0xc], 0
jmp 0x431261
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x43127a
push dword [ebp - 0xc]
lea ecx, [ebp - 0x160]
call fcn.00417a5a
and dword [eax], 0
jmp 0x43125a
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x28], 0
cmp dword [ebp - 4], 1
jge 0x43129a
mov dword [ebp - 0x88], 1
jmp 0x4312a1
and dword [ebp - 0x88], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x88], eax
jge 0x4312bf
mov dword [ebp - 0x12c], 1
jmp 0x4312c6
and dword [ebp - 0x12c], 0
push 0
lea ecx, [ebp - 0x160]
call fcn.00417a5a
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 4], eax
jle 0x4312e7
mov dword [ebp - 0x100], 1
jmp 0x4312ee
and dword [ebp - 0x100], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x100], eax
jg 0x43130c
mov dword [ebp - 0x90], 1
jmp 0x431313
and dword [ebp - 0x90], 0
push 0
lea ecx, [ebp - 0x160]
call fcn.00417a5a
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [eax]
jle 0x431336
mov dword [ebp - 0x14c], 1
jmp 0x43133d
and dword [ebp - 0x14c], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x190], eax
push 8
pop eax
cmp eax, 0x96d5
jb 0x431365
mov dword [ebp - 0x108], 1
jmp 0x43136c
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x7758a8ce
je 0x431393
mov dword [ebp - 0x10c], 1
jmp 0x43139a
and dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x164], 0xffff0001
jne 0x4313c2
mov dword [ebp - 0x120], 1
jmp 0x4313c9
and dword [ebp - 0x120], 0
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 1
jne 0x4313e5
cmp dword [ebp - 0x40], 0
jne 0x4313e5
and dword [ebp - 0x98], 0
jmp 0x4313ef
mov dword [ebp - 0x98], 1
imul eax, dword [ebp - 0x98], 0x4fcf
cmp eax, 0x9d45
jge 0x43140c
mov dword [ebp - 0x110], 1
jmp 0x431413
and dword [ebp - 0x110], 0
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x110], eax
jne 0x43142d
cmp dword [ebp - 4], 0
je 0x43142d
mov dword [ebp - 0x60], 1
jmp 0x431431
and dword [ebp - 0x60], 0
push 1
lea ecx, [ebp - 0xec]
call fcn.00417a5a
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x60]
cmp eax, 0xab2a44bf
je 0x43145c
mov dword [ebp - 0xa0], 1
jmp 0x431463
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0x74]
jg 0x43147d
mov dword [ebp - 0x118], 1
jmp 0x431484
and dword [ebp - 0x118], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x118], eax
je 0x43149b
mov dword [ebp - 0xac], 1
jmp 0x4314a2
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0xac]
je 0x4314bc
mov dword [ebp - 0xb4], 1
jmp 0x4314c3
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0xb4]
jle 0x4314dd
mov dword [ebp - 0xf4], 1
jmp 0x4314e4
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 5
jb 0x4314f6
mov dword [ebp - 0x58], 1
jmp 0x4314fa
and dword [ebp - 0x58], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x28], ecx
cmp dword [ebp - 0x58], 0x9d76
jle 0x43151c
mov dword [ebp - 0x144], 1
jmp 0x431523
and dword [ebp - 0x144], 0
push 2
pop eax
test eax, eax
je 0x431551
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x43154c
push 0
push 0
push 0x87e
push 0x9bb
push 0
call dword [sym.imp.USER32.dll_InsertMenuA]
jmp 0x43175a
push 3
lea ecx, [ebp - 0x18c]
call fcn.0041796c
mov dword [ebp - 0x5c], 0x35292fd4
mov dword [ebp - 0x48], 0
jmp 0x431575
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jge 0x431591
push dword [ebp - 0x48]
lea ecx, [ebp - 0x18c]
call fcn.00417a5a
mov dword [eax], 0xc2cf3769
jmp 0x43156e
push 1
lea ecx, [ebp - 0xec]
call fcn.00417a5a
cmp dword [eax], 0
jae 0x4315af
mov dword [ebp - 0xbc], 1
jmp 0x4315b6
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xbc], eax
jne 0x4315cd
mov dword [ebp - 0x11c], 1
jmp 0x4315d4
and dword [ebp - 0x11c], 0
cmp dword [ebp - 0x11c], 0xe0ee4d50
ja 0x4315ec
mov dword [ebp - 0xc4], 1
jmp 0x4315f3
and dword [ebp - 0xc4], 0
push 1
lea ecx, [ebp - 0xec]
call fcn.00417a5a
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc4]
je 0x43161c
mov eax, 0x5ca7
test eax, eax
jne 0x43161c
and dword [ebp - 0xfc], 0
jmp 0x431626
mov dword [ebp - 0xfc], 1
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
imul eax, dword [ebp - 0xfc]
test eax, eax
jne 0x43164a
cmp dword [ebp - 0x5c], 0
jne 0x43164a
and dword [ebp - 0x138], 0
jmp 0x431654
mov dword [ebp - 0x138], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1ac], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x28]
cmp dword [ebp - 0x150], eax
jge 0x431684
mov dword [ebp - 0x114], 1
jmp 0x43168b
and dword [ebp - 0x114], 0
push 0
lea ecx, [ebp - 0xec]
call fcn.00417a5a
mov esi, eax
push 1
lea ecx, [ebp - 0xec]
call fcn.00417a5a
mov ecx, dword [ebp - 0x114]
add ecx, dword [eax]
add ecx, dword [esi]
cmp ecx, 0xe7bb9215
je 0x4316c5
mov dword [ebp - 0x104], 1
jmp 0x4316cc
and dword [ebp - 0x104], 0
push 2
lea ecx, [ebp - 0x18c]
call fcn.00417a5a
mov dword [ebp - 0xd4], eax
push 0
lea ecx, [ebp - 0x160]
call fcn.00417a5a
mov ecx, dword [ebp - 0xd4]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x104]
jne 0x431712
mov dword [ebp - 0xdc], 1
jmp 0x431719
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0xdc], eax
jne 0x431730
mov dword [ebp - 0x124], 1
jmp 0x431737
and dword [ebp - 0x124], 0
mov esi, dword [ebp - 0x124]
sub esi, dword [ebp - 0x5c]
push 1
lea ecx, [ebp - 0xec]
call fcn.00417a5a
mov dword [eax], esi
lea ecx, [ebp - 0x18c]
call fcn.00417a3e
lea ecx, [ebp - 0x160]
call fcn.00417a3e
jmp 0x431785
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x431785
push 0xc90
push 0x18ac
push 0
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea ecx, [ebp - 0xec]
call fcn.00417a3e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x14], 0xfffffff0
jmp 0x4317b0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jg 0x4318e8
push 1
lea ecx, [ebp - 0x180]
call fcn.0041796c
mov dword [ebp - 0x140], 0xffffffff
mov dword [ebp - 0x50], 0
jmp 0x4317e1
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 1
jge 0x4317fd
push dword [ebp - 0x50]
lea ecx, [ebp - 0x180]
call fcn.00417a5a
mov dword [eax], 9
jmp 0x4317da
cmp dword [ebp - 0x14], 0x4562
je 0x431819
push 0xfffffffffffffff7
pop eax
test eax, eax
je 0x431819
mov dword [ebp - 0xa4], 1
jmp 0x431820
and dword [ebp - 0xa4], 0
imul eax, dword [ebp - 0xa4], 0
test eax, eax
jne 0x43186e
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
je 0x43183f
mov dword [ebp - 0xa8], 1
jmp 0x431846
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0x7747bb7a
je 0x43185e
mov dword [ebp - 0xb0], 1
jmp 0x431865
and dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0xffffffff
je 0x431883
mov eax, 0x5e82aa9d
test eax, eax
je 0x431883
mov dword [ebp - 0xb8], 1
jmp 0x43188a
and dword [ebp - 0xb8], 0
push 0
lea ecx, [ebp - 0x180]
call fcn.00417a5a
mov ecx, dword [ebp - 0xb8]
cmp ecx, dword [eax]
jge 0x4318a7
cmp dword [ebp - 0x14], 0
je 0x4318c5
push 0
lea ecx, [ebp - 0x180]
call fcn.00417a5a
cmp dword [eax], 0
je 0x4318c5
mov dword [ebp - 0xc0], 1
jmp 0x4318cc
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x180]
call fcn.00417a3e
jmp 0x4317a9
mov dword [ebp - 8], 0x4ddb
mov dword [ebp - 0xe0], 0x380ee91b
mov dword [ebp - 0x64], 7
push 1
lea ecx, [ebp - 0x70]
call fcn.0041796c
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x130], 0x88f15ea3
mov dword [ebp - 0x4c], 0
jmp 0x43192b
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x431944
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x70]
call fcn.00417a5a
mov dword [eax], 0xb042
jmp 0x431924
cmp dword [ebp - 8], 0xfffffffc
jae 0x431b15
cmp dword [ebp - 8], 0
jne 0x431b15
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 8]
jne 0x431980
or eax, 0xffffffff
jne 0x431980
mov eax, 0xdd972c40
test eax, eax
jne 0x431980
and dword [ebp - 0xc8], 0
jmp 0x43198a
mov dword [ebp - 0xc8], 1
mov eax, dword [ebp - 0xc8]
sub eax, 0xef9a
je 0x4319ac
mov eax, 0x51b3
test eax, eax
je 0x4319ac
mov dword [ebp - 0xd0], 1
jmp 0x4319b3
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xd0], eax
jle 0x4319ca
mov dword [ebp - 0xd8], 1
jmp 0x4319d1
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xe0], eax
jle 0x4319f7
cmp dword [ebp - 8], 0
je 0x4319f7
mov dword [ebp - 0x78], 1
jmp 0x4319fb
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
mov esi, dword [ebp - 0x64]
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
sub esi, dword [eax]
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
add esi, dword [eax]
cmp esi, dword [ebp - 8]
jge 0x431a2a
mov dword [ebp - 0x7c], 1
jmp 0x431a2e
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x431a4d
push 0xfffffffffffffff8
pop eax
test eax, eax
je 0x431a4d
mov dword [ebp - 0x84], 1
jmp 0x431a54
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x84], eax
jne 0x431a6b
mov dword [ebp - 0x154], 1
jmp 0x431a72
and dword [ebp - 0x154], 0
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
cmp dword [eax], 0
je 0x431a9d
cmp dword [ebp - 0x44], 0
je 0x431a9d
mov dword [ebp - 0x148], 1
jmp 0x431aa4
and dword [ebp - 0x148], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x198], eax
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
mov esi, eax
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
mov ecx, dword [esi]
cmp ecx, dword [eax]
jg 0x431ad5
mov dword [ebp - 0x168], 1
jmp 0x431adc
and dword [ebp - 0x168], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x44], 0
jne 0x431b15
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
cmp dword [eax], 0
jne 0x431b15
and dword [ebp - 0x8c], 0
jmp 0x431b1f
mov dword [ebp - 0x8c], 1
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 8]
jne 0x431b42
push 0
lea ecx, [ebp - 0x70]
call fcn.00417a5a
cmp dword [eax], 0
jne 0x431b42
and dword [ebp - 0x94], 0
jmp 0x431b4c
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x70]
call fcn.00417a3e
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x10], 6
mov dword [ebp - 0x30], 0
jmp 0x431b83
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x431b99
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x1c4], 6
jmp 0x431b7c
mov dword [ebp - 0x10], 2
jmp 0x431ba9
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x431bc3
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x431bc1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x431ba2
mov dword [ebp - 0x10], 0
jmp 0x431bd3
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x431be9
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x1c4], 0xfffffffd
jmp 0x431bcc
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], eax
jmp 0x431c88
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x3c], 0x68206240
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x431c2e
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetPropA]
mov dword [ebp - 0x3c], 0
jmp 0x431c3e
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xfffffff7
je 0x431c64
mov byte [ebp - 0x18], 0
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x431c62
push 0x1e24
push 0xe7f
push 0
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x431c37
push 0x7a6b
push 0x7189
push 0x48ea
push 0x6a12
push 0
push dword [ebp - 0x13c]
call fcn.0042f480
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret