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

Disassembly:
push 0xffffffffffffffff
push 0x56046d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00542726
mov eax, dword [0x68dec8]
mov cx, word [0x68decc]
mov dword [esp + 0x1c], eax
mov eax, dword [0x700320]
mov dword [esp + 0x328], 0
mov word [esp + 0x20], cx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x328], 4
or ebp, 0xffffffff
call fcn.004dfef0
mov edx, dword [0x700320]
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x1c]
mov esi, dword [0x703424]
push 0
push 0
push 0x146
push eax
mov byte [esp + 0x338], 6
call esi
test eax, eax
jle 0x4779e6
mov ecx, edi
call fcn.00477c10
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0x14b
push ecx
mov ebp, eax
call esi
mov ebx, dword [0x703348]
push 0x4011
lea edx, [esp + 0x70]
push 0x2b4
push edx
push 0
push 0x6d2dc4
mov dword [esp + 0x5c], 0x27
mov dword [esp + 0x60], 0xffffffff
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00542813
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [edi + 0x1c]
push 0
push 0x402
push eax
call esi
push eax
call fcn.005427b8
lea ecx, [esp + 0x14]
call fcn.00542778
lea ecx, [esp + 0x38]
push ecx
call fcn.004782d0
add esp, 4
lea ecx, [esp + 0x38]
call fcn.004dffe0
test eax, eax
mov dword [esp + 0x34], eax
jg 0x477a99
or ebx, 0xffffffff
push str._No_Drive_
push 0x27e1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], ebx
call fcn.00506990
add esp, 8
lea edx, [esp + 0x48]
mov ecx, edi
mov dword [esp + 0x50], eax
push edx
call fcn.00543135
jmp 0x477b38
xor esi, esi
test eax, eax
jle 0x477b2f
lea eax, [esp + 0x38]
push esi
push eax
call fcn.00478700
add esp, 8
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x1c]
mov word [esp + 0x1c], ax
push 0x4211
push 0x2b4
push ecx
push 0x10
push edx
call ebx
mov eax, dword [esp + 0x70]
push 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
push esi
push ecx
mov dword [esp + 0x78], esi
call fcn.00478860
mov edx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x48]
mov ecx, edi
push eax
mov dword [esp + 0x54], edx
call fcn.00543135
cmp ebp, esi
jne 0x477b22
mov ecx, dword [edi + 0x1c]
push 0
push 0
push 0x146
push ecx
call dword [0x703424]
dec eax
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x477aa3
mov esi, dword [0x703424]
or ebx, 0xffffffff
mov eax, dword [edi + 0x40]
test eax, eax
jl 0x477b4d
mov edx, dword [edi + 0x1c]
push 0
push eax
push 0x14e
push edx
call esi
mov eax, dword [edi + 0x50]
test eax, eax
je 0x477b77
mov eax, dword [edi + 0x1c]
mov ecx, edi
push eax
call fcn.00548a9f
mov ecx, dword [edi + 0x50]
add eax, 0x10000
push eax
push 0x111
mov edx, dword [ecx + 0x1c]
push edx
call dword [0x703400]
lea ecx, [esp + 0x10]
mov byte [esp + 0x328], 5
call fcn.00544250
lea ecx, [esp + 0x38]
mov byte [esp + 0x328], 4
call fcn.004dff30
lea ecx, [esp + 0x30]
mov byte [esp + 0x328], 3
call fcn.00544250
lea ecx, [esp + 0x28]
mov byte [esp + 0x328], 2
call fcn.00544250
lea ecx, [esp + 0x2c]
mov byte [esp + 0x328], 1
call fcn.00544250
lea ecx, [esp + 0x24]
mov byte [esp + 0x328], 0
call fcn.00544250
lea ecx, [esp + 0x14]
mov dword [esp + 0x328], ebx
call fcn.0054274f
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x31c
ret