Function at 0x404870
Capabilities:
Query environment variable

Disassembly:
inc eax
push ebp
push ebx
push esi
push edi
inc ecx
push esp
inc ecx
push ebp
dec eax
lea ebp, [esp - 0x2c8]
dec eax
sub esp, 0x3c8
dec eax
mov eax, dword [0x1f831]
dec eax
xor eax, esp
dec eax
mov dword [ebp + 0x2b0], eax
dec eax
mov eax, dword [ebp + 0x348]
dec esp
mov ebp, dword [ebp + 0x328]
and dword [esp + 0x50], 0
dec eax
and dword [esp + 0x58], 0
dec eax
and dword [esp + 0x60], 0
dec eax
mov dword [0x20e91], eax
mov al, byte [ebp + 0x350]
mov dword [esp + 0x40], ecx
dec eax
mov ecx, dword [ebp + 0x330]
mov byte [0x20e8e], al
mov al, byte [ebp + 0x358]
inc ecx
mov esi, eax
dec esp
mov eax, dword [ebp + 0x340]
dec eax
mov dword [esp + 0x48], edx
dec eax
mov edx, dword [ebp + 0x338]
mov byte [0x20e6d], al
mov eax, dword [ebp + 0x368]
dec eax
mov dword [0x20e33], ecx
mov cl, byte [ebp + 0x360]
dec ebp
mov esp, ecx
dec eax
mov dword [0x20e43], edx
mov dword [0x20e55], eax
dec esp
mov dword [0x20e26], eax
call fcn.00405d60
call fcn.00405044
test al, al
je 0x404a23
dec eax
lea ecx, [0x170b5]
call fcn.0040ab90
call fcn.00405044
dec eax
lea ebx, [0x1709c]
cmp al, 1
dec eax
lea edi, [0x1708f]
dec eax
mov edx, ebx
dec eax
lea ecx, [0x17079]
dec eax
cmove edx, edi
call fcn.0040ab90
cmp byte [0x20df5], 1
dec eax
mov edx, ebx
dec eax
lea ecx, [0x1704f]
dec eax
cmove edx, edi
call fcn.0040ab90
dec eax
mov edx, dword [0x20dbf]
dec eax
lea ecx, [0x17020]
call fcn.0040ab90
dec eax
mov edx, dword [0x20db4]
dec eax
lea ecx, [0x16ff5]
call fcn.0040ab90
call fcn.00405118
dec eax
lea ecx, [0x16fd4]
cmp al, 1
dec eax
cmove ebx, edi
dec eax
mov edx, ebx
call fcn.0040ab90
dec eax
mov edx, dword [0x20d6f]
dec eax
lea ecx, [0x16fa0]
call fcn.0040ab90
dec eax
mov edx, dword [0x20d7c]
dec eax
lea ecx, [0x16f7d]
call fcn.0040ab90
dec eax
lea ecx, [0x16f61]
call fcn.0040ab90
inc esp
mov ebx, dword [0x20d75]
inc ecx
dec ebx
je 0x404a17
inc ecx
dec ebx
je 0x404a0e
dec eax
lea ecx, [0x16f24]
jmp 0x404a1e
dec eax
lea ecx, [0x16ef3]
jmp 0x404a1e
dec eax
lea ecx, [0x16ec2]
call fcn.0040ab90
call fcn.00405044
test al, al
je 0x404a73
dec eax
lea ecx, [0x179dd]
call fcn.0040ab90
xor ebx, ebx
cmp dword [esp + 0x40], ebx
jle 0x404a65
xor edi, edi
dec esp
mov eax, dword [esp + 0x48]
dec eax
lea ecx, [0x179b2]
mov edx, ebx
dec esi
mov eax, dword [edi + eax]
call fcn.0040ab90
inc ebx
dec eax
add edi, 8
cmp ebx, dword [esp + 0x40]
jl 0x404a42
dec eax
lea ecx, [0x176cc]
xor edx, edx
call fcn.0040220c
dec eax
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
dec esp
lea eax, [esp + 0x60]
call fcn.00403788
inc ecx
mov ecx, 0x104
dec eax
lea eax, [ebp + 0x90]
inc esp
mov dword [esp + 0x38], ecx
dec eax
mov dword [esp + 0x30], eax
dec eax
lea eax, [ebp - 0x80]
inc esp
mov dword [esp + 0x28], ecx
dec esp
lea eax, [ebp + 0x1a0]
dec eax
lea edx, [esp + 0x48]
dec eax
lea ecx, [esp + 0x40]
dec eax
mov dword [esp + 0x20], eax
call fcn.00406418
dec eax
and dword [esp + 0x68], 0
dec eax
and dword [esp + 0x70], 0
call fcn.00405044
test al, al
je 0x404ae0
call fcn.004051f4
dec eax
mov ebx, eax
jmp 0x404ae5
dec eax
mov ebx, dword [esp + 0x58]
dec eax
lea edx, [esp + 0x68]
dec eax
lea ecx, [ebp - 0x80]
call fcn.004067fc
test al, al
jne 0x404b01
mov eax, 6
jmp 0x404c27
call fcn.00405044
test al, al
je 0x404b11
call fcn.004051f4
jmp 0x404b16
dec eax
mov eax, dword [esp + 0x58]
dec eax
sub eax, ebx
dec eax
mov ecx, eax
call fcn.00405240
dec eax
lea ecx, [0x178b0]
dec eax
mov edx, eax
call fcn.00404fe0
dec eax
add dword [esp + 0x48], 8
dec dword [esp + 0x40]
cmp byte [0x20c23], 0
je 0x404b73
dec esp
lea ecx, [esp + 0x48]
dec esp
lea eax, [esp + 0x40]
dec ecx
mov edx, esp
mov ecx, esi
call fcn.004041dc
mov ecx, dword [ebp + 0x320]
dec ecx
mov edx, ebp
call fcn.00402710
test al, al
jne 0x404b92
mov eax, 1
jmp 0x404c27
dec eax
lea ecx, [0x16b8e]
call fcn.0040acf8
dec eax
lea ecx, [0x1784a]
dec eax
test eax, eax
dec eax
cmovne ecx, eax
call fcn.0040237c
dec eax
lea eax, [esp + 0x60]
dec esp
lea ecx, [esp + 0x58]
dec esp
lea eax, [esp + 0x50]
dec eax
lea edx, [esp + 0x48]
dec eax
lea ecx, [esp + 0x40]
dec eax
mov dword [esp + 0x20], eax
call fcn.00403c84
test al, al
jne 0x404bbf
mov eax, dword [esp + 0x60]
jmp 0x404c27
mov edi, dword [esp + 0x50]
dec eax
mov ebx, dword [esp + 0x58]
cmp edi, 2
jne 0x404bd5
dec eax
mov ecx, ebx
call fcn.0040237c
dec esp
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
dec eax
mov ecx, ebx
call fcn.004028ac
dec eax
lea ecx, [0x16b43]
xor edx, edx
call fcn.0040220c
call fcn.00405e08
inc esp
mov ebx, dword [esp + 0x60]
dec esp
mov ecx, dword [esp + 0x48]
inc esp
mov eax, dword [esp + 0x40]
dec eax
mov edx, dword [0x20b89]
inc esp
mov dword [esp + 0x30], ebx
dec eax
lea ecx, [esp + 0x68]
dec eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], edi
call fcn.00405d9c
dec eax
mov ecx, dword [ebp + 0x2b0]
dec eax
xor ecx, esp
call fcn.0040b780
dec eax
add esp, 0x3c8
inc ecx
pop ebp
inc ecx
pop esp
pop edi
pop esi
pop ebx
pop ebp
ret