Function at 0x49a100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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 0x49a166
mov ecx, 0x575afc
test ecx, ecx
je 0x49a166
push 0x575b0c
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x49a166
mov dword [ebp - 0x10], 1
jmp 0x49a1cc
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 0xe
jb 0x49a1c5
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax - 0xd]
test eax, eax
je 0x49a1c5
mov ecx, 0x575b1c
test ecx, ecx
je 0x49a1c5
push 0x575b2c
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax - 0xd]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x49a1c5
mov dword [ebp - 0x10], 2
jmp 0x49a1cc
mov dword [ebp - 0x10], 3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x49a29c
cmp dword [ebp - 0x20], 2
je 0x49a40e
cmp dword [ebp - 0x20], 3
je 0x49a1f1
jmp 0x49a59e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00498fe0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49a212
mov eax, dword [ebp - 0x14]
jmp 0x49a5a0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_getenv
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49a22f
mov eax, dword [ebp - 0x14]
jmp 0x49a5a0
push 0x575b3c
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x49a27c
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.004995c0
add esp, 0x14
cmp dword [ebp - 0x14], 0
jne 0x49a27a
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.004995c0
add esp, 0x14
jmp 0x49a294
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.004995c0
add esp, 0x14
mov eax, dword [ebp - 0x14]
jmp 0x49a5a0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18c], 0
je 0x49a2c7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18c]
push ecx
call fcn.0048e500
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x18c], 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_getenv
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49a2f0
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x49a2fe
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0x590547
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.004995c0
add esp, 0x14
cmp dword [ebp - 0x18], 0
je 0x49a330
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 4], eax
jmp 0x49a33e
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x590548
cmp dword [ebp - 4], 0
jne 0x49a351
cmp dword [ebp - 0xc], 0
jne 0x49a351
xor eax, eax
jmp 0x49a5a0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 1]
push edx
push 1
call sub.MSVCR90.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 0x49a382
xor eax, eax
jmp 0x49a5a0
push 0x3b
push 0x575b48
lea eax, [ebp - 8]
push eax
call sub.MSVCR90.dll_sprintf
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x49a3a3
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
jmp 0x49a3aa
mov dword [ebp - 0x24], 0x590549
cmp dword [ebp - 0x18], 0x59054a
je 0x49a3c1
cmp dword [ebp - 0x1c], 0
je 0x49a3c1
lea edx, [ebp - 8]
mov dword [ebp - 0x28], edx
jmp 0x49a3c8
mov dword [ebp - 0x28], 0x59054b
cmp dword [ebp - 0x1c], 0
je 0x49a3d6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
jmp 0x49a3dd
mov dword [ebp - 0x2c], 0x59054c
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0x575b4c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18c]
push edx
call sub.MSVCR90.dll_sprintf
add esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18c]
jmp 0x49a5a0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004da6a0
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x190], 0
je 0x49a445
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
push ecx
call fcn.0048e500
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x190], 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_getenv
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49a46e
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x49a47c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0x59054d
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
and eax, 4
jne 0x49a4a9
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.004995c0
add esp, 0x14
cmp dword [ebp - 0x18], 0
je 0x49a4c3
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 4], eax
jmp 0x49a4d1
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x59054e
cmp dword [ebp - 4], 0
jne 0x49a4e4
cmp dword [ebp - 0xc], 0
jne 0x49a4e4
xor eax, eax
jmp 0x49a5a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 3]
push ecx
push 1
call sub.MSVCR90.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 0x49a515
xor eax, eax
jmp 0x49a5a0
push 0x3b
push 0x575b54
lea ecx, [ebp - 8]
push ecx
call sub.MSVCR90.dll_sprintf
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x49a536
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
jmp 0x49a53d
mov dword [ebp - 0x30], 0x59054f
cmp dword [ebp - 0x18], 0x590550
je 0x49a554
cmp dword [ebp - 0x1c], 0
je 0x49a554
lea eax, [ebp - 8]
mov dword [ebp - 0x34], eax
jmp 0x49a55b
mov dword [ebp - 0x34], 0x590551
cmp dword [ebp - 0x1c], 0
je 0x49a569
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ecx
jmp 0x49a570
mov dword [ebp - 0x38], 0x590552
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0x575b58
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
push eax
call sub.MSVCR90.dll_sprintf
add esp, 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x190]
jmp 0x49a5a0
xor eax, eax
mov esp, ebp
pop ebp
ret