Function at 0x471b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x77ec3b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], 0
cmp dword [esi + 0x14], 0
mov dword [esp + 0x14], ecx
je GetDriveTypeA
push esi
call fcn.005bc530
add esp, 4
test al, al
jne SetCurrentDirectoryA
push ebx
call fcn.005bc480
mov ecx, eax
call fcn.005bc4d0
mov ecx, eax
call fcn.005ba070
test al, al
jne 0x471eb1
push ebx
mov ecx, edi
call fcn.00408f6c
test al, al
jne 0x471eb1
push esi
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.00403da5
cmp dword [esp + 0x54], 0
mov ebx, 1
mov dword [esp + 0xe8], ebx
jne 0x471c7a
mov esi, dword [esp + 0x14]
push 0x7b0e37
mov ecx, esi
call fcn.004062df
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
mov byte [esp + 0xe8], 0
call fcn.00403b43
mov eax, esi
jmp 0x471ed7
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], 0
mov byte [esp + 0xc0], 0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x7b0e66
mov byte [esp + 0x108], 2
call fcn.004062df
push 2
mov byte [esp + 0x108], 3
call fcn.00408a76
mov ecx, eax
mov byte [esp + 0x108], 2
call fcn.00405853
mov edi, eax
test edi, edi
je 0x471e79
push 0x7b0f1c
lea ecx, [esp + 0x7c]
call fcn.00403706
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
mov byte [esp + 0xec], 4
call fcn.00506070
lea ecx, [esp + 0x78]
mov esi, eax
mov byte [esp + 0xe8], 2
call fcn.00403a26
test esi, esi
je 0x471e70
lea ecx, [esp + 0x58]
call fcn.00407ecd
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x9c]
mov bl, 5
push eax
mov ecx, esi
mov byte [esp + 0xec], bl
call edx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xec], 6
call fcn.00406a87
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe8], bl
call fcn.004040b6
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
lea ecx, [esi + 8]
call edx
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
call fcn.004064ce
test al, al
je 0x471e5a
lea ecx, [esp + 0x20]
call fcn.004048d1
push eax
call fcn.00406604
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x44]
call fcn.00406b18
mov ecx, eax
call fcn.00403689
test al, al
je 0x471e4c
cmp dword [esp + 0xd0], 0
je 0x471e0c
push 0x2c
push 1
lea ecx, [esp + 0xc4]
call fcn.0040323d
lea ecx, [esp + 0x20]
call fcn.004048d1
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.00407662
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf4], 7
call fcn.00401e38
lea ecx, [esp + 0x78]
mov byte [esp + 0xe8], bl
call fcn.00402ed7
lea ecx, [esp + 0x20]
call fcn.00403828
jmp 0x471d80
lea ecx, [esp + 0x58]
mov byte [esp + 0xe8], 2
call fcn.004040b6
mov ebx, 1
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.0040521d
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18], ebx
call fcn.00402ed7
lea ecx, [esp + 0x38]
mov byte [esp + 0xe8], 0
call fcn.00403b43
mov eax, esi
jmp 0x471ed7
mov ecx, dword [esp + 0x14]
push 0
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push 0x7b0e36
mov byte [ecx + 4], 0
call fcn.00405920
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00564b24
mov esp, ebp
pop ebp
ret 0xc