Function at 0x43477c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518f52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
mov ebx, dword [0x543670]
push ebx
push 0
call fcn.00430194
push str.HOME
call dword [sym.imp.MSVCR80.dll_getenv]
pop ecx
test eax, eax
je 0x434929
mov ecx, dword [ebp + 8]
push eax
call fcn.00430664
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [edx - 8]
test ecx, ecx
jne 0x434802
push str.USERPROFILE
call dword [sym.imp.MSVCR80.dll_getenv]
pop ecx
test eax, eax
je 0x4347f6
mov ecx, dword [ebp + 8]
push eax
call fcn.00430664
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edx - 8]
test eax, eax
je 0x434863
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push eax
push edx
call fcn.00441a20
add esp, 8
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00430810
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 5
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x43490d
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x43490d
push ecx
call dword [sym.imp.MSVCR80.dll_free]
jmp 0x43490c
call fcn.0043fa6c
mov dword [ebp - 0x2c], eax
mov edx, dword [0x55d358]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
push 0x104
call fcn.0042f7f0
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 1
push 0x104
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.0042f7a8
mov dword [ebp - 4], 2
mov edx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push edx
push dword [ebp - 0x30]
call fcn.00443a68
add esp, 0x10
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 3
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, dword [edx - 0xc]
lea ecx, [edx - 0xc]
cmp eax, 0xffffffff
je 0x43490d
add eax, 0xffffffff
mov dword [edx - 0xc], eax
jne 0x43490d
push ecx
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.HOMEDRIVE
call dword [sym.imp.MSVCR80.dll_getenv]
pop ecx
mov ecx, eax
test ecx, ecx
je 0x43495f
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x434954
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43493d
add eax, 0xffffffff
push eax
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0042fda0
push str.HOMEPATH
call dword [sym.imp.MSVCR80.dll_getenv]
pop ecx
mov edi, eax
test edi, edi
je 0x4347d1
mov ecx, edi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x434990
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x434979
add eax, 0xffffffff
mov ecx, dword [ebp + 8]
push eax
push edi
push eax
call fcn.0042fda0
mov esi, 0x543a60
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4349c0
test dl, dl
je 0x4349bc
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4349c0
add edi, 2
add esi, 2
test dl, dl
jne 0x4349a0
xor eax, eax
jmp 0x4349c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4347d1
mov ecx, dword [ebp + 8]
push ebx
push 0
call fcn.00430194
jmp 0x4347d1