Function at 0x4509e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 8], 0
xor eax, eax
mov byte [ebp - 7], al
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x450a46
mov ecx, 0x517590
test ecx, ecx
je 0x450a46
push 0x5175a0
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x450a46
mov dword [ebp - 0x10], 1
jmp 0x450ab2
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401610
add esp, 8
cmp eax, 0xe
jb 0x450aab
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401610
add esp, 8
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax - 0xd]
test eax, eax
je 0x450aab
mov ecx, 0x5175b0
test ecx, ecx
je 0x450aab
push 0x5175c0
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401610
add esp, 8
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax - 0xd]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
jne 0x450aab
mov dword [ebp - 0x10], 2
jmp 0x450ab2
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x450b84
cmp dword [ebp - 0x20], 2
je 0x450cf4
cmp dword [ebp - 0x20], 3
je 0x450ad7
jmp 0x450e80
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0044f870
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x450af8
mov eax, dword [ebp - 0x14]
jmp 0x450e80
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR120.dll_getenv
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x450b15
mov eax, dword [ebp - 0x14]
jmp 0x450e80
push 0
push 0x5175d0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x450b64
push 0
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044fe70
add esp, 0x14
cmp dword [ebp - 0x14], 0
jne 0x450b62
push 1
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044fe70
add esp, 0x14
jmp 0x450b7c
push 0
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044fe70
add esp, 0x14
mov eax, dword [ebp - 0x14]
jmp 0x450e80
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18c], 0
je 0x450baf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18c]
push ecx
call fcn.0043c5b0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x18c], 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR120.dll_getenv
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x450bda
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00401610
add esp, 8
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x450be8
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0x528b3f
push 0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0044fe70
add esp, 0x14
cmp dword [ebp - 0x18], 0
je 0x450c1c
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00401610
add esp, 8
add eax, 1
mov dword [ebp - 4], eax
jmp 0x450c2a
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x528b40
cmp dword [ebp - 4], 0
jne 0x450c3d
cmp dword [ebp - 0xc], 0
jne 0x450c3d
xor eax, eax
jmp 0x450e80
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 3]
push edx
push 1
call sub.MSVCR120.dll_calloc
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18c], 0
jne 0x450c6e
xor eax, eax
jmp 0x450e80
push 0x3b
push 0x5175dc
lea eax, [ebp - 8]
push eax
call sub.MSVCR120.dll_sprintf
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x450c8f
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
jmp 0x450c96
mov dword [ebp - 0x24], 0x528b41
cmp dword [ebp - 0x18], 0
je 0x450cb4
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx]
test eax, eax
je 0x450cb4
cmp dword [ebp - 0x1c], 0
je 0x450cb4
lea ecx, [ebp - 8]
mov dword [ebp - 0x28], ecx
jmp 0x450cbb
mov dword [ebp - 0x28], 0x528b42
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 8]
push eax
push 0x5175e0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18c]
push edx
call sub.MSVCR120.dll_sprintf
add esp, 0x1c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18c]
jmp 0x450e80
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00471b30
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x190], 0
je 0x450d2b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
push ecx
call fcn.0043c5b0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x190], 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR120.dll_getenv
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x450d56
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00401610
add esp, 8
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x450d64
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0x528b43
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
and eax, 4
jne 0x450d91
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0044fe70
add esp, 0x14
cmp dword [ebp - 0x18], 0
je 0x450dad
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401610
add esp, 8
add eax, 1
mov dword [ebp - 4], eax
jmp 0x450dbb
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x528b44
cmp dword [ebp - 4], 0
jne 0x450dce
cmp dword [ebp - 0xc], 0
jne 0x450dce
xor eax, eax
jmp 0x450e80
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 5]
push ecx
push 1
call sub.MSVCR120.dll_calloc
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x190], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x190], 0
jne 0x450dff
xor eax, eax
jmp 0x450e80
push 0x3b
push 0x5175ec
lea ecx, [ebp - 8]
push ecx
call sub.MSVCR120.dll_sprintf
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x450e20
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
jmp 0x450e27
mov dword [ebp - 0x2c], 0x528b45
cmp dword [ebp - 0x18], 0
je 0x450e45
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
test ecx, ecx
je 0x450e45
cmp dword [ebp - 0x1c], 0
je 0x450e45
lea edx, [ebp - 8]
mov dword [ebp - 0x30], edx
jmp 0x450e4c
mov dword [ebp - 0x30], 0x528b46
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x5175f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
push eax
call sub.MSVCR120.dll_sprintf
add esp, 0x1c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x190]
mov esp, ebp
pop ebp
ret