Function at 0x1004e395
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090e5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
movzx eax, byte [ebp + 0x40]
test eax, eax
je 0x1004e7ba
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x38], 0x1d5a
mov dword [ebp - 0xec], 0x1000b2d0
cmp dword [ebp - 0x38], 0x1db2
jle 0x1004e4dd
and dword [ebp - 0x24], 0
jmp 0x1004e438
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1eb5
jge 0x1004e4dd
and dword [ebp - 0x28], 0
jmp 0x1004e452
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x57a7
jge 0x1004e4d8
and dword [ebp - 0x18], 0
jmp 0x1004e468
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7221
jge 0x1004e4d3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
shl eax, cl
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xfc], eax
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x11c]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x11c]
call fcn.100252df
jmp 0x1004e461
jmp 0x1004e44b
jmp 0x1004e431
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x38], 0x1c43
jge 0x1004e4fb
push dword [ebp - 0xec]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1004e724
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x1004e5f1
push 2
mov ecx, dword [ebp - 0x2c]
call fcn.10025597
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
imul eax, dword [ecx]
test eax, eax
je 0x1004e5f1
mov dword [ebp - 0x5c], 1
jmp 0x1004e5f5
and dword [ebp - 0x5c], 0
imul eax, dword [ebp - 0x5c], 0xd045
cmp eax, 0x1e1c5a3d
jge 0x1004e60c
mov dword [ebp - 0x44], 1
jmp 0x1004e610
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jg 0x1004e623
mov dword [ebp - 0x54], 1
jmp 0x1004e627
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x54]
neg ecx
cmp dword [eax], ecx
je 0x1004e641
mov dword [ebp - 0x4c], 1
jmp 0x1004e645
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jg 0x1004e658
mov dword [ebp - 0x3c], 1
jmp 0x1004e65c
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x35dd253d
jne 0x1004e66e
mov dword [ebp - 0x40], 1
jmp 0x1004e672
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jle 0x1004e688
mov dword [ebp - 0x84], 1
jmp 0x1004e68f
and dword [ebp - 0x84], 0
push 2
mov ecx, dword [ebp - 0x2c]
call fcn.10025597
push 2
mov ecx, dword [ebp - 0x2c]
call fcn.10025597
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x1004e6b8
mov dword [ebp - 0x30], 1
jmp 0x1004e6bc
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jle 0x1004e6da
mov dword [ebp - 0x8c], 1
jmp 0x1004e6e1
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x50]
imul eax, dword [ecx]
imul eax, eax, 0x3f07
sub eax, 0x38991f32
imul eax, eax, 6
cmp eax, 0xfffffffb
je 0x1004e713
mov dword [ebp - 0x60], 1
jmp 0x1004e717
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
jmp 0x1004e7b8
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1004e74f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jg 0x1004e7b8
push 1
lea ecx, [ebp - 0xf8]
call fcn.100254f9
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
jmp 0x1004e778
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x1004e794
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xf8]
call fcn.10025597
mov dword [eax], 0x3211
jmp 0x1004e771
push 0
lea ecx, [ebp - 0xf8]
call fcn.10025597
mov dword [eax], 0xf69ff98
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
call fcn.1002557b
jmp 0x1004e744
jmp 0x1004e81e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xcc], eax
push dword [ebp - 0xa4]
push dword [ebp - 0xac]
push dword [ebp - 0xb4]
push 0
push dword [ebp - 0xbc]
push dword [ebp - 0xc4]
push dword [ebp - 0xcc]
call fcn.1004ea79
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret