Function at 0x403ca0
Capabilities:
Delete file
Move file
Print debug messages
Read file on windows

Disassembly:
mov eax, 0x92a00
call fcn.00409fe0
mov edx, dword [esp + 0x92a08]
push ebx
push ebp
mov ebp, ecx
lea eax, [edx + edx*4]
push esi
push edi
lea ecx, [edx + eax*2]
mov eax, dword [0x40e438]
shl ecx, 4
mov eax, dword [eax + 0x68]
cmp byte [eax + ecx + 0xac], 1
jne 0x40438e
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
lea eax, [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x92a18]
push eax
push edx
push ecx
mov ecx, ebp
call fcn.00404ea0
test eax, eax
jne 0x403d51
lea edx, [esp + 0x50]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
push edx
lea eax, [esp + 0x94]
push str.getSendFileName_ERROR....._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x92a00
ret 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x110]
push 0x40d7e0
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
jne 0x403db9
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
lea eax, [esp + 0x110]
lea ecx, [esp + 0x90]
push eax
push str.File_Open_ERROR....._s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x92a00
ret 8
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, 0x249f0
xor eax, eax
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
push esi
push 0x927c0
lea ecx, [esp + 0x258]
push 1
push ecx
call ebx
push 0
push 0
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x1c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi + 0xc]
xor edi, edi
test al, 0x10
mov dword [esp + 0x14], edi
jne 0x403e42
push esi
push 0x3e8
lea edx, [esp + edi + 0x258]
push 1
push edx
call ebx
mov ecx, dword [esi + 0xc]
add esp, 0x10
test cl, 0x20
jne 0x403f18
add edi, eax
test cl, 0x10
je 0x403e16
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, edi
je 0x403f5a
lea ecx, [esp + 0x50]
mov edx, eax
push ecx
push edi
push edx
lea eax, [esp + 0x9c]
push str.___MGR_PC:_First_File_read_error__f:_d__s:_d___s
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x90]
push ecx
mov ecx, ebp
call fcn.00405820
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
mov ecx, 0x249f0
xor eax, eax
lea edi, [esp + 0x260]
push 0x927c0
lea edx, [esp + 0x264]
push 1
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x403f5a
lea eax, [esp + 0x50]
lea edx, [esp + 0x90]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push str.___MGR_PC:_Second_File_read_error__f:_d__s:_d___s
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x90]
mov ecx, ebp
push eax
call fcn.00405820
xor eax, eax
push esi
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x92a00
ret 8
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x94]
push eax
push str.MGR_PC:_Read_error__delete___s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x90]
mov ecx, ebp
push edx
call fcn.00405820
lea eax, [esp + 0x110]
push eax
jmp 0x404028
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x2bf]
xor ecx, ecx
mov ax, word [esp + 0x2c3]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x50], ecx
mov cl, byte [esp + 0x2c5]
push edx
mov word [esp + 0x4c], ax
mov byte [esp + 0x4e], cl
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, eax
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, edx
jge 0x404046
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
push edx
push ecx
lea edx, [esp + 0x9c]
push str.___MGR_PC:_File_error__f:_d__i:_d___s
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x90]
mov ecx, ebp
push eax
call fcn.00405820
lea ecx, [esp + 0x50]
lea edx, [esp + 0x150]
push ecx
push str.d:_Comm_Temp
push str._s__s
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x150]
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x1448], eax
pop esi
pop ebp
pop ebx
add esp, 0x92a00
ret 8
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x4238]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x50]
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push str.MGR_PC:_Send_Vol_File_:__s
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x98]
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 4]
mov eax, esi
cdq
idiv edi
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x24], ecx
jle 0x4040b8
mov edx, ecx
mov eax, esi
imul edx, edi
mov edi, edx
cdq
idiv edi
test edx, edx
jle 0x4040b8
inc ecx
mov dword [ebp + 0x24], ecx
mov eax, dword [ebp + 0x24]
inc eax
mov dword [ebp + 0x24], eax
push eax
lea eax, [esp + 0x24]
push str.__d_
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x40e438]
push 0x3f3
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [ebp + 0x24]
push esi
push edx
lea eax, [esp + 0x98]
push str.MGR_PC:_Send_VOL_Total_Packet_:__d__d
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jl 0x40414a
push esi
push eax
lea edx, [esp + 0x98]
push str.MGR_PC:_Send_VOL_File_Size_ERROR_:__d__d
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x90]
mov ecx, ebp
push eax
call fcn.00405820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x92a00
ret 8
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp + 4]
add ecx, edi
mov edi, dword [ebp + 0x41f8]
imul ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x92a18]
mov ecx, dword [ebp + 0x41f8]
push eax
push 0x33
push ecx
mov ecx, ebp
call fcn.00404e20
push 0
lea edx, [esp + 0x24]
push str._04d
push edx
call ebx
mov eax, dword [ebp + 0x41f8]
mov ecx, dword [esp + 0x2c]
push esi
lea edx, [esp + 0x30]
push str._07d
push edx
mov dword [eax + 0x14], ecx
call ebx
mov eax, dword [ebp + 0x41f8]
mov ecx, dword [esp + 0x38]
add eax, 0x1e
lea edi, [esp + 0x68]
lea esi, [esp + 0x68]
mov dword [eax], ecx
mov dx, word [esp + 0x3c]
mov word [eax + 4], dx
mov cl, byte [esp + 0x3e]
mov byte [eax + 6], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp + 0x41f8]
not ecx
dec ecx
add edi, 0x25
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x41f8]
or ecx, 0xffffffff
add edi, 0x1e
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x38]
mov edi, ecx
push edi
push str._07d
push eax
mov dword [esp + 0x3c], edi
call ebx
mov ecx, dword [ebp + 0x41f8]
mov edx, dword [esp + 0x44]
add ecx, 0xd
mov esi, 1
add esp, 0x24
mov dword [esp + 0x10], esi
mov dword [ecx], edx
mov ax, word [esp + 0x24]
mov word [ecx + 4], ax
mov dl, byte [esp + 0x26]
mov byte [ecx + 6], dl
mov eax, dword [ebp + 0x24]
cmp eax, esi
jl 0x404339
mov edi, 0xbd6
mov dword [esp + 0x1c], edi
jmp 0x404260
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x92a18]
mov ecx, dword [ebp + 0x41f8]
push eax
add ecx, edi
push 0x33
push ecx
mov ecx, ebp
call fcn.00404e20
push esi
lea edx, [esp + 0x24]
push str._04d
push edx
call ebx
mov eax, dword [ebp + 0x41f8]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [eax + edi + 0x14], ecx
mov edx, dword [ebp + 0x24]
dec edx
cmp esi, edx
jne 0x4042b4
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
cdq
idiv ecx
mov esi, edx
test esi, esi
jne 0x4042b7
mov esi, ecx
jmp 0x4042b7
mov esi, dword [ebp + 4]
push esi
lea eax, [esp + 0x24]
push str._07d
push eax
call ebx
mov ecx, dword [ebp + 0x41f8]
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [ecx + edi + 0xd]
mov dword [ecx + edi + 0xd], eax
mov cx, word [esp + 0x24]
mov word [edx + 4], cx
mov al, byte [esp + 0x26]
mov ecx, esi
mov byte [edx + 6], al
mov edx, dword [esp + 0x10]
dec edx
mov eax, dword [ebp + 0x41f8]
imul edx, dword [ebp + 4]
lea edi, [eax + edi + 0x1e]
mov eax, dword [esp + 0x10]
lea esi, [esp + edx + 0x250]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x24]
add edx, 0xbd6
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
jle 0x404258
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x41f8]
add eax, edi
lea edx, [ebp + 0xc0]
mov ecx, eax
mov edi, edx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x92a18]
push ecx
push eax
push edx
mov edx, dword [0x40e438]
lea ecx, [edx + 0x60]
call fcn.004099a0
mov eax, dword [esp + 0x18]
mov ecx, ebp
push eax
push 0x33
push 2
mov dword [ebp + 0x1448], 0x65
call fcn.00405670
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x92a00
ret 8