Function at 0x1004d35d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f364
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1004d9fa
lea eax, [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x1004d9d8
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0x62d5e48d
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0xe4], 0x9523
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x12]
push eax
push 0x5a67
push 0x170e
push 0x6179
push 0
call fcn.1005bdf1
add esp, 0x14
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x94]
push eax
push 0x5c34
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xcc]
push eax
push 1
push 0
push 0x7668
push 0x388a
call fcn.1004f6df
add esp, 0x28
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 0x1521
mov dword [ebp - 0xac], 0x1000c754
cmp dword [ebp - 0x6c], 0x16b5
jle 0x1004d522
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
and dword [ebp - 0x24], 0
jmp 0x1004d4ae
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6d57
jge 0x1004d522
and dword [ebp - 0x40], 0
jmp 0x1004d4c4
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x6d51
jge 0x1004d520
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
shl eax, cl
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x130]
call fcn.100127de
pop ecx
pop ecx
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
call fcn.10026416
push eax
call fcn.10079103
pop ecx
lea ecx, [ebp - 0x130]
call fcn.1002640c
jmp 0x1004d4bd
jmp 0x1004d4a7
mov dword [ebp - 0x104], 0x194ddbc
mov dword [ebp - 0x100], 0x194ddbc
mov dword [ebp - 0xfc], 0x194ddbc
mov dword [ebp - 0xf8], 0x194ddbc
mov dword [ebp - 0x44], 0
jmp 0x1004d55a
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x1004d56d
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x2c], 0x558b
jmp 0x1004d553
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x2c]
dec ecx
push 4
pop edx
imul edx, edx, 0
mov dword [ebp + edx - 0x2c], ecx
test eax, eax
jne 0x1004d5a3
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x2c], 0
jne 0x1004d5a3
and dword [ebp - 0x54], 0
jmp 0x1004d5aa
mov dword [ebp - 0x54], 1
cmp dword [ebp - 0x54], 0xffffffff
jne 0x1004d5b9
mov dword [ebp - 0x74], 1
jmp 0x1004d5bd
and dword [ebp - 0x74], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x74]
mov dword [ebp + eax - 0x104], ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x5c], 0x3103
mov dword [ebp - 0xb0], 0x1000c788
cmp dword [ebp - 0x5c], 0x3220
jle 0x1004d644
and dword [ebp - 0x3c], 0
jmp 0x1004d5f8
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x1be6
jge 0x1004d644
and dword [ebp - 0x34], 0
jmp 0x1004d60e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x4eb5
jge 0x1004d642
mov eax, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x34]
cdq
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], edx
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
mov ecx, 0x10094c18
call fcn.10026436
jmp 0x1004d607
jmp 0x1004d5f1
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1004d65a
push 0x6d7a
push 0
call fcn.100585b2
pop ecx
pop ecx
cmp dword [ebp - 0x5c], 0x2d50
jge 0x1004d673
mov edx, dword [ebp - 0xb0]
mov ecx, 0x10094c18
call fcn.10029186
cmp dword [ebp - 0x6c], 0x120e
jge 0x1004d688
push dword [ebp - 0xac]
call fcn.10079103
pop ecx
mov eax, dword [ebp - 0x64]
cmp dword [eax + 4], 0
jbe 0x1004d9d6
mov dword [ebp - 0xbc], 0x7013dce9
mov dword [ebp - 0xb4], 0x304b25b3
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0x20], 0
jmp 0x1004d6c3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jge 0x1004d6d9
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x118], 0xff82
jmp 0x1004d6bc
push 0x46c
push 0x26c4
push 0x4b1c
push 0x3440
push 0
push 1
push 0x5932
push 1
call fcn.1005654c
add esp, 0x20
mov eax, dword [ebp - 0xb4]
cmp dword [ebp - 0xbc], eax
jge 0x1004d717
mov dword [ebp - 0x48], 1
jmp 0x1004d71b
and dword [ebp - 0x48], 0
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x48]
mov dword [ebp + eax - 0x118], ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
add ecx, dword [eax]
mov dword [ebp - 0x68], ecx
push 3
lea ecx, [ebp - 0xf4]
call fcn.10026750
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
jmp 0x1004d760
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x1004d77c
push dword [ebp - 0x10]
lea ecx, [ebp - 0xf4]
call fcn.100267ee
mov dword [eax], 0xdc85f70a
jmp 0x1004d759
mov dword [ebp - 0x10], 0
jmp 0x1004d78c
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1004d79f
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x18], 9
jmp 0x1004d785
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x18], 0
jmp 0x1004d7c4
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x18]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x18], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x18], 3
jge 0x1004d8c6
mov dword [ebp - 0x50], 0x7a45
mov dword [ebp - 0xd8], 0x1000c7d8
cmp dword [ebp - 0x50], 0x7b15
jle 0x1004d88d
and dword [ebp - 0x28], 0
jmp 0x1004d800
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x7b44
jge 0x1004d88d
and dword [ebp - 0x30], 0
jmp 0x1004d81a
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x59b3
jge 0x1004d888
and dword [ebp - 0x1c], 0
jmp 0x1004d830
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x26ef
jge 0x1004d886
and dword [ebp - 0x38], 0
jmp 0x1004d846
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x2ad4
jge 0x1004d884
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x30]
imul edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x38]
mov eax, edx
cdq
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
mov ecx, 0x10094c18
call fcn.10026436
jmp 0x1004d83f
jmp 0x1004d829
jmp 0x1004d813
jmp 0x1004d7f9
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0x18]
lea ecx, [ebp - 0xf4]
call fcn.100267ee
mov dword [eax], 0x9b546158
cmp dword [ebp - 0x50], 0x791b
jge 0x1004d8c1
mov edx, dword [ebp - 0xd8]
mov ecx, 0x10094c18
call fcn.10029186
jmp 0x1004d7af
push 0
call fcn.1004df6a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.100267d2
mov eax, dword [ebp - 0x68]
cmp dword [eax], 0
jbe 0x1004d9d6
push 1
lea ecx, [ebp - 0x80]
call fcn.10026750
mov dword [ebp - 4], 1
mov dword [ebp - 0x90], 0x631e19e9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x80]
push eax
push 1
push 1
push 0x243f
call fcn.1004d1cf
add esp, 0x14
push 0
lea ecx, [ebp - 0x80]
call fcn.100267ee
and dword [eax], 0
jmp 0x1004d947
push 0
lea ecx, [ebp - 0x80]
call fcn.100267ee
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x58]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x80]
call fcn.100267ee
cmp dword [eax], 0xffffffe2
jle 0x1004d988
mov dword [ebp - 0x88], 0xbd697e78
push 0x5064
lea eax, [ebp - 0x88]
push eax
push 0
push 0x5719
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1005e1e2
add esp, 0x18
jmp 0x1004d92f
push 0
push 0x43a1
push 0x77f3
call fcn.100509c5
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.100267d2
push dword [ebp - 0x98]
push 0x2357
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x7175
push 1
push 0x41c7
push 1
call fcn.1004cfb5
add esp, 0x20
jmp 0x1004d8dd
jmp 0x1004d9f8
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
jmp 0x1004da08
push 0x1742
push 0
call fcn.10050f02
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret