Function at 0x404d80
Capabilities:
Check if file exists
Get file attributes
Get file system object information
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
mov eax, dword [esi + 0x8a4]
movzx eax, byte [eax]
add eax, 0xffffff99
cmp eax, 0xa
push edi
ja case.0x404d9c.110
jmp dword [eax*4 + 0x4050e0]
push str.TOKEN_FILE_LIST
push 0x444
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_FILE_LIST
push 0x444
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
mov ecx, dword [esi + 0x8a8]
mov edx, dword [esi + 0x8a4]
add esp, 0x20
sub ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00405460
pop edi
pop esi
add esp, 0xc
ret
push str.TOKEN_FILE_SIZE
push 0x448
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_FILE_SIZE
push 0x448
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x20
mov ecx, esi
pop edi
pop esi
add esp, 0xc
jmp 0x406d40
push str.TOKEN_FILE_DATA
push 0x44c
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_FILE_DATA
push 0x44c
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x20
mov ecx, esi
pop edi
pop esi
add esp, 0xc
jmp 0x407330
push str.TOKEN_TRANSFER_FINISH
push 0x450
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_TRANSFER_FINISH
push 0x450
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x20
mov eax, esi
pop edi
pop esi
add esp, 0xc
jmp 0x407880
push str.TOKEN_CREATEFOLDER_FINISH
push 0x454
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_CREATEFOLDER_FINISH
push 0x454
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x1c
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x452250
call fcn.0040ad70
mov ecx, esi
call fcn.00405110
pop edi
pop esi
add esp, 0xc
ret
push str.TOKEN_DELETE_FINISH
push 0x458
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_DELETE_FINISH
push 0x458
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x20
mov eax, esi
pop edi
pop esi
add esp, 0xc
jmp 0x407a20
push str.TOKEN_GET_TRANSFER_MODE
push 0x45c
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_GET_TRANSFER_MODE
push 0x45c
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x20
mov ecx, esi
pop edi
pop esi
add esp, 0xc
jmp 0x408430
push str.TOKEN_DATA_CONTINUE
push 0x460
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_DATA_CONTINUE
push 0x460
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x20
mov ecx, esi
pop edi
pop esi
add esp, 0xc
jmp 0x408610
push str.TOKEN_RENAME_FINISH
push 0x464
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_RENAME_FINISH
push 0x464
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
add esp, 0x1c
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x452250
call fcn.0040ad70
mov ecx, esi
call fcn.00405110
pop edi
pop esi
add esp, 0xc
ret
push str.TOKEN_DRIVE_LIST
push 0x468
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040d010
push str.TOKEN_DRIVE_LIST
push 0x468
push str..FileClientDlg.cpp
push 0
mov ecx, str.CFileClientDlg::OnReceiveComplete
call fcn.0040cd30
push 0x400
lea edi, [esi + 0x298]
push 0
push edi
call fcn.00435f30
mov eax, dword [esi + 0x8a8]
add esp, 0x2c
test eax, eax
jbe 0x4050d8
add eax, 0xffffffff
push eax
mov eax, dword [esi + 0x8a4]
add eax, 1
push eax
push edi
call fcn.00438d50
add esp, 0xc
mov ecx, esi
pop edi
pop esi
add esp, 0xc
jmp fcn.00404610
mov esi, dword [esi + 0x8a0]
test esi, esi
mov byte [esp + 0xf], 6
je 0x4050d8
lea ecx, [esp + 0xf]
push 1
push ecx
call esi
add esp, 8
pop edi
pop esi
add esp, 0xc
ret
push 0xffffffffffffffff
push 0x44a1f2
mov eax, dword fs:[0]
push eax
sub esp, 0x3e4
mov eax, dword [0x45d740]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d740]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x6b0]
sub eax, 0x10
xor ebx, ebx
push eax
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], ebx
call fcn.00402220
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
push ebx
push ebx
mov dword [esp + 0x408], ebx
mov eax, dword [edi + 0x86c]
push 0x1042
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e72
lea ebp, [edi + 0x84c]
push esi
mov ecx, ebp
call fcn.004107ff
cmp eax, 1
jne 0x406e72
push ebx
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.00410db0
push 0x452254
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40c], 1
call fcn.0040a540
add esp, 0xc
mov byte [esp + 0x400], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040a7c0
mov byte [esp + 0x400], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x400], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x84]
mov ecx, dword [ecx - 0xc]
cmp ecx, ebx
lea eax, [edi + 0x84]
je 0x406ed8
push 0x452254
push eax
lea edx, [esp + 0x20]
push edx
call fcn.0040a540
add esp, 0xc
mov byte [esp + 0x400], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0040a7c0
mov byte [esp + 0x400], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x8a4]
mov ecx, dword [eax + 5]
mov dword [edi + 0x90], ecx
lea ecx, [eax + 9]
cmp ecx, ebx
mov dword [edi + 0x94], ebx
lea esi, [edi + 0x88]
jne 0x406efe
xor eax, eax
jmp 0x406f0e
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406f03
sub eax, ebp
push eax
push ecx
mov ecx, esi
call fcn.00402100
lea ebp, [edi + 0x78]
push esi
mov ecx, ebp
call fcn.00402080
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x294]
push ecx
push eax
push ebp
call fcn.0040a100
mov eax, dword [ebp]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x406f51
push ebx
mov ecx, ebp
call fcn.004023a0
mov ecx, dword [ebp]
call fcn.00409f00
mov eax, dword [ebp]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x406f76
push ebx
mov ecx, ebp
call fcn.004023a0
mov eax, dword [ebp]
lea edx, [esp + 0x9c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [esp + 0x20], edx
je 0x407058
mov eax, dword [edi + 0x80]
mov ebx, 4
cmp eax, ebx
je 0x407056
cmp eax, 2
je 0x407056
cmp eax, 6
je 0x407056
mov eax, edi
lea esi, [esp + 0x24]
call fcn.0040b2f0
push ebp
lea ecx, [esp + 0x9c]
mov byte [esp + 0x404], bl
call fcn.00402080
mov ecx, esi
call fcn.00415543
add eax, 0xfffffc0c
cmp eax, 6
ja case.default.0x406fec
jmp dword [eax*4 + 0x4072dc]
mov dword [edi + 0x80], 3
jmp case.default.0x406fec
mov dword [edi + 0x80], ebx
jmp case.default.0x406fec
mov dword [edi + 0x80], 1
jmp case.default.0x406fec
mov dword [edi + 0x80], 2
jmp case.default.0x406fec
mov dword [edi + 0x80], 5
jmp case.default.0x406fec
mov dword [edi + 0x80], 6
jmp case.default.0x406fec
mov dword [edi + 0x80], 7
lea esi, [esp + 0x24]
mov byte [esp + 0x400], 0
call fcn.00407300
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [edi + 0x80]
cmp ecx, 7
jne 0x407086
mov byte [edi + 0x74], 1
mov edi, dword [edi + 0x8a0]
cmp edi, ebx
mov byte [esp + 0x17], 8
je 0x407287
push 1
lea eax, [esp + 0x1b]
push eax
jmp 0x407282
mov eax, ecx
sub eax, 2
je 0x4070a3
sub eax, 2
je 0x40709c
sub eax, 2
jne 0x4070a8
lea ecx, [eax + 5]
jmp 0x4070a8
mov ecx, 3
jmp 0x4070a8
mov ecx, 1
xor eax, eax
cmp edx, 0xffffffff
mov dword [esp + 0x1e0], eax
mov dword [esp + 0x1e4], eax
mov byte [esp + 0x1e8], al
mov byte [esp + 0x1e0], 7
je 0x407105
cmp ecx, 1
jne 0x407100
mov eax, dword [esp + 0xbc]
add dword [edi + 0x98], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x1e1], ecx
adc dword [edi + 0x9c], ebx
mov dword [esp + 0x1e5], eax
mov esi, 3
jmp 0x407151
cmp ecx, 3
jne 0x40711a
xor eax, eax
mov dword [esp + 0x1e1], eax
mov dword [esp + 0x1e5], eax
lea esi, [eax + 2]
jmp 0x407151
cmp ecx, 5
jne 0x40714d
mov eax, dword [edi + 0x6a8]
mov edx, dword [eax + 0x20]
push ebx
push 0x64
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1e5], 0xffffffff
mov esi, 3
jmp 0x407151
mov esi, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x407175
push ebx
mov ecx, ebp
call fcn.004023a0
mov eax, dword [ebp]
push ebx
push 0x80
push esi
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x407248
push 0x207
lea eax, [esp + 0x1f1]
push ebx
push eax
mov byte [esp + 0x1f8], 0
call fcn.00435f30
lea ecx, [esp + 0x1f8]
add esp, 0xc
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
mov dword [edi + 0x9c], ebx
push ecx
mov ebx, 0x4524b8
call fcn.0040c680
add esp, 4
push eax
lea edx, [esp + 0x1c]
push ebp
push edx
call fcn.0040a540
add esp, 0xc
mov byte [esp + 0x400], 5
mov esi, dword [eax]
lea eax, [esp + 0x2f0]
push 0x30
push eax
mov ebx, 0x451980
call fcn.0040c680
mov ecx, dword [edi + 0x20]
add esp, 4
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x400], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407287
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.00407af0
cmp byte [edi + 0x74], 0
mov edi, dword [edi + 0x8a0]
je 0x407274
cmp edi, ebx
mov byte [esp + 0x17], 8
je 0x407287
push 1
lea ecx, [esp + 0x1b]
push ecx
jmp 0x407282
cmp edi, ebx
je 0x407287
push 9
lea edx, [esp + 0x1e4]
push edx
call edi
add esp, 8
mov dword [esp + 0x400], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00431676
add esp, 0x3f0
ret
sub esp, 0x74c
mov eax, dword [0x45d740]
xor eax, esp
mov dword [esp + 0x744], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
xor edi, edi
push 0x3ff
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov byte [esp + 0x354], al
lea eax, [esp + 0x355]
mov esi, ecx
push edi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x28], edi
mov byte [esp + 0x40], 0
call fcn.00435f30
add esp, 0xc
push 0x30b
lea ecx, [esp + 0x45]
push edi
push ecx
mov byte [esp + 0x4c], 0
call fcn.00435f30
mov eax, dword [esi + 0x8a4]
mov ebx, dword [eax + 5]
lea edx, [eax + 9]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 1]
xor ecx, ecx
or ecx, ebx
mov ebx, dword [esi + 0x8a8]
xor ebp, ebp
or edx, ebp
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], edx
mov ecx, dword [eax + 1]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 5]
sub ebx, 9
add esp, 0xc
cmp ebx, 0xa0000
mov dword [esp + 0x2c], edx
ja 0x40783c
cmp ebx, edi
jl 0x40783c
add esi, 0x78
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
or ecx, dword [eax + 8]
jge 0x407410
push 0
mov ecx, esi
call fcn.004023a0
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x24], ebp
jne 0x407517
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
or edx, dword [eax + 8]
jge 0x407455
push 0
mov ecx, esi
call fcn.004023a0
cmp dword [esi], 0
je 0x407479
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
or ecx, dword [eax + 8]
jge 0x407475
push 0
mov ecx, esi
call fcn.004023a0
mov eax, dword [esi]
jmp 0x40747e
mov eax, str.NULL
push eax
push str.INVALID_HANDLE_VALUE__hFile___s__CreateFile_failure_
push 0x7c2
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040d010
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
add esp, 0x14
or edx, dword [eax + 8]
jge 0x4074b8
push 0
mov ecx, esi
call fcn.004023a0
cmp dword [esi], 0
je 0x4074dc
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
or ecx, dword [eax + 8]
jge 0x4074d8
push 0
mov ecx, esi
call fcn.004023a0
mov eax, dword [esi]
jmp 0x4074e1
mov eax, str.NULL
push eax
push str.INVALID_HANDLE_VALUE__hFile___s__CreateFile_failure_
push 0x7c2
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040cd30
add esp, 0x14
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0xf
jl 0x4073f5
cmp edi, 0xf
jne 0x40759a
cmp ebp, 0xffffffff
jne 0x40759a
lea edx, [esp + 0x144]
push edx
mov ebx, 0x452540
call fcn.0040c680
add esp, 4
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ebx, 0x452554
call fcn.0040c680
add esp, 4
push eax
push str._s_s_s
lea edx, [esp + 0x360]
push 0x3ff
push edx
call fcn.004319ad
add esp, 0x18
lea eax, [esp + 0x248]
push 0x30
push eax
mov ebx, 0x451980
call fcn.0040c680
mov edx, dword [esp + 0x20]
add esp, 4
push eax
mov eax, dword [edx + 0x20]
lea ecx, [esp + 0x358]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x407735
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407611
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x407611
call edi
neg eax
sbb eax, eax
neg eax
push eax
push str.SetFilePointer_INVALID_HANDLE_VALUE__hFile__d_
push 0x7d1
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040d010
add esp, 0x14
call edi
neg eax
sbb eax, eax
neg eax
push eax
push str.SetFilePointer_INVALID_HANDLE_VALUE__hFile__d_
push 0x7d1
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040cd30
add esp, 0x14
jmp 0x407731
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
lea esp, [esp]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push edx
call ebp
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x407691
push ebx
push str.WriteFile_hFile_pData__dwBytesToWrite__d___dwBytesWrite_NULL_
push 0x7d9
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040d010
add esp, 0x14
push ebx
push str.WriteFile_hFile_pData__dwBytesToWrite__d___dwBytesWrite_NULL_
push 0x7d9
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040cd30
add esp, 0x14
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0xf
jl 0x407620
mov eax, dword [esp + 0x1c]
cmp edi, 0xf
jne 0x4077b4
test eax, eax
jg 0x4077b4
push 0x400
lea eax, [esp + 0x354]
push 0
push eax
call fcn.00435f30
lea ecx, [esp + 0x150]
add esp, 0xc
push ecx
mov ebx, 0x452540
call fcn.0040c680
mov edx, dword [esi]
add esp, 4
push eax
push edx
lea eax, [esp + 0x48]
push eax
mov ebx, 0x4525d4
call fcn.0040c680
add esp, 4
push eax
push str._s_s_s
lea ecx, [esp + 0x360]
push 0x3ff
push ecx
call fcn.004319ad
add esp, 0x18
lea edx, [esp + 0x248]
push 0x30
push edx
mov ebx, 0x451980
call fcn.0040c680
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
add esp, 4
push eax
lea eax, [esp + 0x358]
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x40773c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], 0xffffffff
je 0x40779b
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x8a0]
test eax, eax
mov byte [esp + 0x17], 8
je 0x407762
lea ecx, [esp + 0x17]
push 1
push ecx
call eax
add esp, 8
push str.SendStop
push 0x7fb
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040d010
push str.SendStop
push 0x7fb
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040cd30
add esp, 0x20
mov ecx, dword [esp + 0x754]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431676
add esp, 0x74c
ret
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add dword [esi + 0x98], eax
mov eax, esi
adc dword [esi + 0x9c], 0
call fcn.00407af0
cmp byte [esi + 0x74], 0
je 0x4077fe
mov eax, dword [esi + 0x8a0]
test eax, eax
mov byte [esp + 0x17], 8
je 0x40782f
lea ecx, [esp + 0x17]
push 1
push ecx
call eax
add esp, 8
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40772d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x39], eax
mov eax, dword [esi + 0x8a0]
test eax, eax
mov byte [esp + 0x34], 7
mov dword [esp + 0x35], edx
je 0x40782f
lea edx, [esp + 0x34]
push 9
push edx
call eax
add esp, 8
mov dword [esp + 0x1c], 0xffffffff
jmp 0x40772d
push ebx
push str.dwBytesToWrite__ld_
push 0x7b4
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040d010
add esp, 0x14
push ebx
push str.dwBytesToWrite__ld_
push 0x7b4
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::WriteLocalRecvFile
call fcn.0040cd30
add esp, 0x14
jmp 0x407747
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
mov esi, eax
push ebx
push 0x451c5c
lea ecx, [esi + 0x88]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
call fcn.00402100
cmp dword [esi + 0xac], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
je 0x4078d5
cmp byte [esi + 0x74], bl
jne 0x4078d5
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00406630
pop edi
pop esi
pop ebx
add esp, 8
ret
lea edi, [esi + 0xa0]
call fcn.00401f50
push 1
lea ecx, [esi + 0x84c]
mov byte [esi + 0x74], bl
mov dword [esi + 0x80], ebx
call fcn.0041355b
push 1
lea ecx, [esi + 0x7f8]
call fcn.0041355b
push 1
lea ecx, [esi + 0x7a4]
call fcn.0041355b
push 1
lea ecx, [esi + 0x750]
call fcn.0041355b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x452250
call fcn.0040ad70
mov ecx, esi
call fcn.00403860
mov eax, dword [esi + 0x6b0]
push eax
push 0x4525ec
call fcn.00405940
add esp, 8
pop edi
pop esi
pop ebx
add esp, 8
ret
sub esp, 8
push esi
push 5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0xe4], 0
je 0x407a81
cmp byte [esi + 0x74], 0
jne 0x407a81
push 0x452624
push 0x83d
push str..FileClientDlg.cpp
push 2
mov ecx, str.CFileClientDlg::EndRemoteDeleteFile
call fcn.0040d010
push 0x452624
push 0x83d
push str..FileClientDlg.cpp
push 2
mov ecx, str.CFileClientDlg::EndRemoteDeleteFile
call fcn.0040cd30
add esp, 0x20
mov ecx, esi
pop esi
add esp, 8
jmp fcn.00406b00
push 1
lea ecx, [esi + 0x84c]
mov byte [esi + 0x74], 0
call fcn.0041355b
push 1
lea ecx, [esi + 0x7f8]
call fcn.0041355b
push 1
lea ecx, [esi + 0x7a4]
call fcn.0041355b
push 1
lea ecx, [esi + 0x750]
call fcn.0041355b
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x452250
call fcn.0040ad70
mov ecx, esi
call fcn.00405110
mov eax, dword [esi + 0x294]
push eax
push 0x452608
call fcn.00405940
add esp, 8
pop esi
add esp, 8
ret
push 0xffffffffffffffff
push 0x44aa5c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x45d740]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
mov eax, dword [0x45d740]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
push esi
push 0x9f
lea ecx, [esp + 0x14]
call fcn.00414e6d
mov dword [esp + 0x98], 0
mov dword [esp + 0xc], vtable.CFileTransferModeDlg.0
call fcn.00412fcd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4084a6
push 0x80004005
call fcn.00402350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x80], eax
lea ecx, [esi + 0x7c]
push ecx
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], 1
call fcn.00402080
lea ecx, [esp + 0xc]
call fcn.00415543
add eax, 0xfffffc0c
cmp eax, 6
ja case.default.0x4084e7
jmp dword [eax*4 + 0x4085f4]
mov dword [esi + 0x80], 3
jmp case.default.0x4084e7
mov dword [esi + 0x80], 4
jmp case.default.0x4084e7
mov dword [esi + 0x80], 1
jmp case.default.0x4084e7
mov dword [esi + 0x80], 2
jmp case.default.0x4084e7
mov dword [esi + 0x80], 5
jmp case.default.0x4084e7
mov dword [esi + 0x80], 6
jmp case.default.0x4084e7
mov dword [esi + 0x80], 7
mov eax, dword [esi + 0x80]
cmp eax, 7
jne 0x408563
mov eax, esi
mov byte [esi + 0x74], 1
call fcn.00407950
mov dword [esp + 0x98], 2
jmp 0x408596
mov esi, dword [esi + 0x8a0]
test esi, esi
mov byte [esp + 0x84], 0xb
mov dword [esp + 0x85], eax
je 0x40858b
lea ecx, [esp + 0x84]
push 5
push ecx
call esi
add esp, 8
mov dword [esp + 0x98], 3
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4085b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x98], 0xffffffff
call fcn.00414de2
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00431676
add esp, 0x94
ret
sub esp, 0x61c
mov eax, dword [0x45d740]
xor eax, esp
mov dword [esp + 0x614], eax
test byte [0x501b58], 1
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x408644
or dword [0x501b58], 1
mov dword [0x501b54], 0x9fff7
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x225]
push ebx
push eax
mov byte [esp + 0x22c], bl
call fcn.00435f30
add esp, 0xc
push 0x207
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call fcn.00435f30
mov eax, dword [esi + 0x8a4]
add esp, 0xc
add eax, 1
mov dword [0x461b40], ebx
mov dword [0x461b34], eax
lea ebp, [ebx - 1]
jne 0x4086d1
push str.pFileSize_1_
push 0x92a
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040d010
push str.pFileSize_1_
push 0x92a
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040cd30
add esp, 0x20
jmp 0x408adf
mov ecx, dword [eax]
mov eax, dword [eax + 4]
xor edx, edx
xor edi, edi
or edx, eax
or ecx, edi
mov eax, esi
mov dword [esi + 0x98], edx
mov dword [esi + 0x9c], ecx
call fcn.00407af0
mov ecx, dword [esi + 0x98]
cmp ecx, dword [esi + 0x90]
jne 0x408711
mov edx, dword [esi + 0x9c]
cmp edx, dword [esi + 0x94]
je 0x408a1a
mov eax, dword [0x461b34]
cmp dword [eax + 4], ebp
je 0x408a1a
cmp byte [esi + 0x74], bl
jne 0x408a1a
mov eax, dword [esi + 0x88]
lea edi, [esi + 0x88]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
or ecx, dword [eax + 8]
jge 0x40874c
push ebx
mov ecx, edi
call fcn.004023a0
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebp
mov dword [0x45eb00], eax
jne 0x408865
mov eax, dword [esi + 0x78]
lea edi, [esi + 0x78]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
or edx, dword [eax + 8]
jge 0x408790
push ebx
mov ecx, edi
call fcn.004023a0
cmp dword [edi], ebx
mov eax, str.m_strReceiveLocalFile.GetBuffer_0__NULL_
je 0x40879e
mov eax, 0x451c5c
push eax
push str.hFile__INVALID_HANDLE_VALUE_s
push 0x93e
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040d010
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
add esp, 0x14
or ecx, dword [eax + 8]
jge 0x4087d7
push ebx
mov ecx, edi
call fcn.004023a0
cmp dword [edi], ebx
mov eax, str.m_strReceiveLocalFile.GetBuffer_0__NULL_
je 0x4087e5
mov eax, 0x451c5c
push eax
push str.hFile__INVALID_HANDLE_VALUE_s
push 0x93e
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040cd30
lea edx, [esp + 0x2c]
add esp, 0x14
push edx
mov ebx, 0x4527f4
call fcn.0040c680
add esp, 4
push eax
mov eax, dword [edi]
push eax
push str._s__s
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call fcn.004319ad
add esp, 0x14
lea edx, [esp + 0x11c]
push 0x30
push edx
mov ebx, 0x451980
call fcn.0040c680
mov ecx, dword [esi + 0x20]
add esp, 4
push eax
lea eax, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ebx, ebx
jmp 0x408adf
mov ecx, dword [0x461b34]
mov edx, dword [ecx]
push ebx
mov dword [0x461b38], edx
mov ecx, dword [ecx + 4]
push 0x461b38
push ecx
push eax
mov dword [0x461b3c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
jne 0x4088f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4088f0
mov eax, dword [0x461b38]
mov ecx, dword [0x461b3c]
push eax
push ecx
push str.SetFilePointer_INVALID_HANDLE_VALUE__hFile_dwOffsetLow__d__dwOffsetHigh__d_
push 0x94a
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040d010
mov edx, dword [0x461b38]
mov eax, dword [0x461b3c]
push edx
push eax
push str.SetFilePointer_INVALID_HANDLE_VALUE__hFile_dwOffsetLow__d__dwOffsetHigh__d_
push 0x94a
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040cd30
add esp, 0x30
jmp 0x408adf
push 0xa0000
push ebx
push 0x461b48
mov dword [0x461b44], ebx
call fcn.00435f30
mov ecx, dword [0x461b38]
mov eax, dword [0x501b54]
mov edx, dword [0x461b3c]
add esp, 0xc
push ebx
push 0x461b44
push eax
mov dword [0x461b49], ecx
mov ecx, dword [0x45eb00]
push 0x461b51
push ecx
mov byte [0x461b48], 5
mov dword [0x461b4d], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4089e6
push str.ReadFile_failure_
push 0x955
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040d010
push str.ReadFile_failure_
push 0x955
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040cd30
lea edx, [esp + 0x38]
push edx
mov ebx, 0x45287c
call fcn.0040c680
add esp, 0x24
push eax
mov eax, dword [esi + 0x78]
push eax
push str._s__s
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call fcn.004319ad
add esp, 0x14
lea edx, [esp + 0x11c]
push 0x30
push edx
mov ebx, 0x451980
call fcn.0040c680
mov ecx, dword [esi + 0x20]
add esp, 4
push eax
lea eax, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ebx, ebx
jmp 0x408adf
mov eax, dword [0x461b44]
cmp eax, ebx
jbe 0x408adf
lea ecx, [eax + 9]
mov eax, dword [esi + 0x8a0]
cmp eax, ebx
mov dword [0x501b48], ecx
je 0x408ad9
push ecx
push 0x461b48
call eax
add esp, 8
jmp 0x408ad9
mov eax, esi
call fcn.00407950
mov edx, dword [esi + 0x98]
cmp edx, dword [esi + 0x90]
jne 0x408a44
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0x94]
jne 0x408a44
mov eax, 1
jmp 0x408a46
xor eax, eax
xor ecx, ecx
cmp byte [esi + 0x74], bl
setne cl
xor edx, edx
push ecx
mov ecx, dword [0x461b34]
cmp dword [ecx + 4], ebp
mov ecx, str.CFileClientDlg::SendFileData
sete dl
push edx
push eax
push str.m_nCounter__m_nOperatingFileLength__d____pFileSize__dwSizeLow___1___d_____m_bIsStop__d_
push 0x936
push str..FileClientDlg.cpp
push 1
call fcn.0040d010
mov edx, dword [esi + 0x98]
add esp, 0x1c
cmp edx, dword [esi + 0x90]
jne 0x408aa0
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0x94]
jne 0x408aa0
mov eax, 1
jmp 0x408aa2
xor eax, eax
xor ecx, ecx
cmp byte [esi + 0x74], bl
setne cl
xor edx, edx
push ecx
mov ecx, dword [0x461b34]
cmp dword [ecx + 4], ebp
mov ecx, str.CFileClientDlg::SendFileData
sete dl
push edx
push eax
push str.m_nCounter__m_nOperatingFileLength__d____pFileSize__dwSizeLow___1___d_____m_bIsStop__d_
push 0x936
push str..FileClientDlg.cpp
push 1
call fcn.0040cd30
add esp, 0x1c
mov dword [0x461b40], ebp
mov eax, dword [0x45eb00]
cmp eax, ebx
je 0x408aef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x461b40], ebp
je 0x408b4b
mov esi, dword [esi + 0x8a0]
cmp esi, ebx
mov byte [esp + 0x17], 8
je 0x408b12
lea edx, [esp + 0x17]
push 1
push edx
call esi
add esp, 8
push str.SendStop
push 0x96b
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040d010
push str.SendStop
push 0x96b
push str..FileClientDlg.cpp
push 1
mov ecx, str.CFileClientDlg::SendFileData
call fcn.0040cd30
add esp, 0x20
mov ecx, dword [esp + 0x624]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431676
add esp, 0x61c
ret