Function at 0x402cb1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
lea eax, [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
mov ecx, eax
call dbg.PacketDriver::PacketDriver(PropConnection&)
sub esp, 4
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], 1
call dbg.nmessage
mov dword [esp + 4], 0x4d8da2
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
sete al
test al, al
je 0x402d19
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x67
call dbg.nerror
jmp 0x402f84
cmp dword [ebp + 0x14], 0
jne 0x402d4c
mov dword [esp + 4], 0x2f
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
sete al
test al, al
je 0x402d48
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
jmp 0x402d4c
add dword [ebp + 0x14], 1
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [packetDriver.m_connection], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov dword [esp], str.Loading_SD_helper
call dbg.message
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.LoadSDHelper
test eax, eax
setne al
test al, al
je 0x402dd9
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov dword [esp], str.Loading_SD_helper
call dbg.error
jmp 0x402f84
lea eax, [ebp - 0x1c]
mov ecx, eax
call dbg.PacketDriver::waitForInitialAck()
test eax, eax
sete al
test al, al
je 0x402dfd
mov dword [esp], str.Failed_to_connect_to_helper
call dbg.error
jmp 0x402f84
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov edx, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], 0
mov ecx, eax
call dbg.PacketDriver::sendPacket(int, unsigned char*, int)
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x402eb4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov dword [esp], str.SendPacket_FILE_WRITE_failed
call dbg.error
jmp 0x402f84
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 8
call dbg.nprogress
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], edx
lea edx, [ebp - 0x41c]
mov dword [esp + 4], edx
mov dword [esp], 1
mov ecx, eax
call dbg.PacketDriver::sendPacket(int, unsigned char*, int)
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x402eae
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov dword [esp], str.SendPacket_DATA_failed
call dbg.error
jmp 0x402f84
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
setne al
test al, al
jne 0x402e51
mov eax, dword [packetDriver.m_connection]
mov dword [esp + 4], eax
mov dword [esp], 9
call dbg.nmessage
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4d89a8
mov dword [esp], 2
mov ecx, eax
call dbg.PacketDriver::sendPacket(int, unsigned char*, int)
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x402f44
mov dword [esp], str.SendPacket_EOF_failed
call dbg.error
jmp 0x402f84
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4d89a8
mov dword [esp], 2
mov ecx, eax
call dbg.PacketDriver::sendPacket(int, unsigned char*, int)
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x402f7f
mov dword [esp], str.Second_SendPacket_EOF_failed
call dbg.error
jmp 0x402f84
mov eax, 0
leave
ret