Function at 0x45882b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4588dc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x4588c8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x4588a6
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], 2
jge 0x4588c6
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x9c]
call fcn.00413f7a
mov dword [eax], 1
jmp 0x45889b
jmp 0x4588d7
push 0x14d5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x458ccf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 9
mov dword [ebp - 0x54], 0x4e20eeb
mov dword [ebp - 0x84], 0x38fd2320
mov dword [ebp - 4], 0
jmp 0x45890d
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x14
jle 0x458cc0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x1c], 0
jmp 0x45892e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jge 0x458941
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x44], 0xfffffff6
jmp 0x458927
mov dword [ebp - 0x10], 0
jmp 0x458951
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 9
je 0x458cbb
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 4], 0
je 0x45896c
cmp dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jne 0x4589d0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 4], 0
je 0x458999
cmp dword [ebp - 8], 0
je 0x458999
mov dword [ebp - 0x34], 1
jmp 0x45899d
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
add eax, 0x53f0d3ec
mov dword [ebp - 0x70], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x70]
mov dword [ebp + eax - 0x44], ecx
cmp dword [ebp - 0x70], 0
je 0x4589c1
cmp dword [ebp - 8], 0
jne 0x4589d0
mov eax, 0x32c5
test eax, eax
jne 0x4589d0
and dword [ebp - 0x38], 0
jmp 0x4589d7
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x38], 0x4adc
jg 0x4589e4
cmp dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 4], eax
je 0x458cab
or eax, 0xffffffff
je 0x458cab
mov dword [ebp - 0x94], 0x7758a8c
push 4
lea ecx, [ebp - 0xac]
call fcn.00413ed8
mov dword [ebp - 0x18], 0
jmp 0x458a20
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x458a3c
push dword [ebp - 0x18]
lea ecx, [ebp - 0xac]
call fcn.00413f7a
mov dword [eax], 0x600bf094
jmp 0x458a19
mov dword [ebp - 8], 2
jmp 0x458a4c
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x458c9e
mov dword [ebp - 0xc0], 0x46e74a6e
mov dword [ebp - 0xbc], 0x46e74a6e
mov dword [ebp - 0xb8], 0x46e74a6e
mov dword [ebp - 0xb4], 0x46e74a6e
lea ecx, [ebp - 0x25]
call fcn.00401e75
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00413f89
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x7c]
call fcn.00413f4b
push 1
lea ecx, [ebp - 0x7c]
call fcn.00413f7a
and dword [eax], 0
jmp 0x458ad4
push 1
lea ecx, [ebp - 0x7c]
call fcn.00413f7a
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x7c]
call fcn.00413f7a
cmp dword [eax], 2
jg 0x458c91
mov dword [ebp - 0x60], 1
push 1
lea ecx, [ebp - 0x7c]
call fcn.00413f7a
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp + ecx*4 - 0x44]
cmp dword [ebp + eax*4 - 0x44], ecx
jl 0x458c4b
mov dword [ebp - 0x24], 0xfffffff8
mov byte [ebp - 0xa], 0
movzx eax, byte [ebp - 0xa]
test eax, eax
je 0x458b2d
push 0x14d5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
push 2
lea ecx, [ebp - 0x7c]
call fcn.00413f7a
cmp dword [eax], 8
jge 0x458b4e
mov dword [ebp - 0x4c], 1
jmp 0x458b52
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x44]
cmp eax, dword [ebp - 0x4c]
jg 0x458b67
mov dword [ebp - 0x6c], 1
jmp 0x458b6b
and dword [ebp - 0x6c], 0
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x6c]
push 0
lea ecx, [ebp - 0xac]
call fcn.00413f7a
cmp esi, dword [eax]
je 0x458b8b
mov dword [ebp - 0x20], 1
jmp 0x458b8f
and dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0xac]
call fcn.00413f7a
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x20], eax
jl 0x458bb2
mov dword [ebp - 0x64], 1
jmp 0x458bb6
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x64], eax
jg 0x458bc7
mov dword [ebp - 0x30], 1
jmp 0x458bcb
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x30], eax
jle 0x458bdc
mov dword [ebp - 0x48], 1
jmp 0x458be0
and dword [ebp - 0x48], 0
mov eax, 0xa164e62b
sub eax, dword [ebp - 0x48]
sub eax, 0x5f7f7777
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x44]
jl 0x458c02
mov dword [ebp - 0x2c], 1
jmp 0x458c06
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x44], ecx
xor eax, eax
inc eax
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x60]
jg 0x458c24
mov dword [ebp - 0x50], 1
jmp 0x458c28
and dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0x8af1
jne 0x458c3a
mov dword [ebp - 0x58], 1
jmp 0x458c3e
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
sub eax, 0xad53
mov dword [ebp - 0x60], eax
jmp 0x458c8c
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x458c5d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x44]
mov dword [ebp - 0x68], eax
push 0
lea ecx, [ebp - 0xac]
call fcn.00413f7a
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x68]
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x44], eax
jmp 0x458abc
lea ecx, [ebp - 0x7c]
call fcn.00413f75
jmp 0x458a45
lea ecx, [ebp - 0xac]
call fcn.00413f75
jmp 0x458cb6
cmp dword [ebp - 0x84], 0
je 0x458cb6
jmp 0x458cbb
jmp 0x45894a
jmp 0x458906
push 1
push dword [ebp - 0x88]
call fcn.004524cc
pop ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret