Function at 0x414b51
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x414ddd
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x414c3f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x414c2b
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x414c0c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x414c29
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x6c]
call fcn.0042f1b3
mov dword [eax], 0x207
jmp 0x414c01
jmp 0x414c3a
push 0xe50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x414ddb
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x414cc3
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x414ca1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x414cbe
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.0042f1b3
mov dword [eax], 0xda8ed40a
jmp 0x414c96
jmp 0x414ddb
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xffffffe2
jmp 0x414cfd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffe5
jne 0x414ddb
push 2
lea ecx, [ebp - 0x9c]
call fcn.0042f0c5
mov dword [ebp - 0xa0], 0x8c08872f
mov dword [ebp - 0xa4], 0xa50b5f0b
push 3
lea ecx, [ebp - 0xb0]
call fcn.0042f0c5
push 0x11e8
push 0x6212
lea eax, [ebp - 0x9c]
push eax
push 1
push 0x7228
lea eax, [ebp - 0x60]
push eax
push 0x116d
push 0x149a
push 0x3d82
push 0x11dd
push 0
push 1
push 0x11b2
push 1
push 0xfb9
push 0
call fcn.00422ac6
add esp, 0x40
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x53a7
push 0
call fcn.00417ef5
add esp, 0x10
push 0x3810
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x68]
push 0
call fcn.00424bca
add esp, 0x10
push 0
push dword [ebp - 0x70]
call fcn.00425f14
pop ecx
pop ecx
lea ecx, [ebp - 0xb0]
call fcn.0042f197
lea ecx, [ebp - 0x9c]
call fcn.0042f197
jmp 0x414cf2
jmp 0x414df9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
push dword [ebp - 0x80]
push 1
call fcn.0040d884
add esp, 0xc
mov esp, ebp
pop ebp
ret