Function at 0x45ca60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ce78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ecx + 0x1358]
mov dword [ebp - 0x20], edi
dec eax
cmp edi, eax
jg 0x45cd3d
mov edx, dword [ecx + 0x1354]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x45cd37
mov eax, dword [esi + 0x20]
mov byte [ebp - 4], 1
test eax, eax
je 0x45cd2d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x45cd2d
lea eax, [esi + 4]
lea ecx, [ebp - 0x14]
push eax
call fcn.004e1b94
push 1
push 0x22
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004d689e
lea ecx, [ebp - 0x34]
push 1
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004d6f0d
mov edx, dword [ebp - 0x18]
mov eax, dword [eax]
push edx
push eax
call fcn.004bdb15
add esp, 8
lea ecx, [ebp - 0x34]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004e1e27
test bl, bl
je 0x45cb4e
lea ecx, [ebp - 0x2c]
push 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.004d6dd8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004e1f6e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004e1e27
push 1
push 0x22
lea ecx, [ebp - 0x1c]
call fcn.004d689e
lea edx, [ebp - 0x4c]
push 1
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004d6e91
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push edx
call fcn.004bdb15
add esp, 8
lea ecx, [ebp - 0x4c]
test eax, eax
sete bl
call fcn.004e1e27
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004e1e27
test bl, bl
je 0x45cbc5
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004d6f0d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004e1f6e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004e1e27
lea edx, [ebp - 0x44]
push 3
push edx
lea ecx, [ebp - 0x14]
call fcn.004d6f0d
mov eax, dword [eax]
push 0x5629f4
push eax
call fcn.004bdb15
add esp, 8
lea ecx, [ebp - 0x44]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x45cc37
lea ecx, [ebp - 0x28]
push ecx
call fcn.004ab6d0
add esp, 4
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 7
push edx
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004e2066
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004e1f6e
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.004e1e27
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004e1e27
mov eax, dword [ebp - 0x14]
cmp word [eax], 0x25
jne 0x45cc62
lea ecx, [ebp - 0x254]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x14]
push edx
call fcn.004e1fbe
lea eax, [ebp - 0x30]
push 2
push eax
lea ecx, [ebp - 0x14]
call fcn.004d6f0d
mov ecx, dword [eax]
push 0x55c42c
push ecx
call fcn.004bdb15
add esp, 8
lea ecx, [ebp - 0x30]
test eax, eax
sete bl
call fcn.004e1e27
test bl, bl
je 0x45cce3
lea edx, [ebp - 0x38]
push 2
push edx
lea ecx, [ebp - 0x14]
call fcn.004d6dd8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004e1f6e
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004e1e27
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x40]
push eax
push 0x5762b0
push ecx
call fcn.004e2066
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004e1f6e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004e1e27
lea edx, [ebp - 0x14]
push edx
call fcn.00419720
add esp, 4
cmp eax, 1
je 0x45cd02
mov eax, dword [esi + 0x20]
push 0x1f4
push eax
call fcn.0042a220
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004e1e27
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 0
inc edi
jmp 0x45ca90
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 0
inc edi
jmp 0x45ca90
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret