Function at 0x431850
Capabilities:
Copy file
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1404
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x4d0554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x248], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx], ebx
mov dword [ebp - 0x26c], ecx
lea ecx, [edi + 0x2f4]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x250], ebx
mov dword [eax], ebx
call dword [sym.imp.FUSVCCLT.dll_public:_enum__FCIF_TRANS_TYPE___thiscall_CFCIFTransportInfo::GetTransType_void_]
test eax, eax
jne 0x4319ab
lea ecx, [edi + 0x2f4]
call dword [sym.imp.FUSVCCLT.dll_public:_char____thiscall_CFCIFTransportInfo::GetIPAddress_void_const]
test eax, eax
je 0x43197b
push eax
lea ecx, [edi + 0x4dc]
call fcn.0041dad0
lea ecx, [ebp - 0x37c]
mov edi, eax
call fcn.00403a90
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x378]
mov dword [ebp - 0x244], 0xfffffffe
test esi, esi
jne 0x43192a
lea ecx, [ebp - 0x37c]
call fcn.00403c30
mov esi, dword [ebp - 0x378]
test al, al
jne 0x43192a
mov edi, 0x800a0004
jmp 0x43194c
mov eax, dword [ebp - 0x344]
test eax, eax
jne 0x43193b
mov edi, 0x800a0004
jmp 0x43194c
push 0x2710
lea ecx, [ebp - 0x244]
push ecx
push edi
call eax
mov edi, eax
push dword [ebp - 0x244]
mov eax, dword [ebp - 0x248]
push edi
push str._RFT__GetSMBAnonymousLoginEnable_Ret:_d_Status:_d
push dword [eax + 0x614]
call fcn.00437650
add esp, 0x10
test edi, edi
je 0x431985
test esi, esi
je 0x43197b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x6c
jmp 0x432318
cmp dword [ebp - 0x244], 0
mov eax, 1
cmove ebx, eax
mov dword [ebp - 0x250], ebx
test esi, esi
je 0x4319a5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x248]
xorps xmm0, xmm0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0xffffffff
movups xmmword [ebp - 0x29c], xmm0
lea eax, [ebp - 0x2a8]
mov dword [ebp - 4], 1
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0041eb80
test eax, eax
je 0x431a0c
push eax
push str._RFT__GetRecvFaxSettings_Error_Ret:_d
push dword [edi + 0x614]
call fcn.00437650
add esp, 0xc
mov ebx, 0x6c
jmp 0x4322ca
xor esi, esi
nop
push esi
push str._RFT__GetStorageFolderPath_Retry:_d
push dword [edi + 0x614]
call fcn.00437650
add esp, 0xc
lea eax, [ebp - 0x250]
mov ecx, edi
push dword [ebp - 0x260]
push eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x264]
call fcn.00432970
mov ebx, eax
test ebx, ebx
je 0x431ae2
cmp ebx, 0x2c
je 0x431ab7
cmp ebx, 0x2d
je 0x431ab7
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov edx, str.FindMediaWaitTime
mov ecx, str.FaxReceive
call fcn.004037a0
sub eax, 0
je 0x431a96
sub eax, 2
jne 0x431a96
mov eax, 0xbb8
mov dword [ebp - 0x244], eax
jmp 0x431a9c
mov eax, dword [ebp - 0x244]
push eax
push dword [edi + 0x3c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x431ad8
inc esi
cmp esi, 5
jl 0x431a10
mov eax, dword [ebp - 0x264]
push ebx
push dword [eax]
push str._RFT__GetStorageFolderPath__s__Error_Ret:_d
push dword [edi + 0x614]
call fcn.00437650
add esp, 0x10
jmp 0x4322ca
mov ebx, 0x6b
jmp 0x4322ca
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x432336
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov eax, str..pdf
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
test eax, 0xffff0000
jne 0x431b20
movzx eax, ax
push eax
call fcn.0041cd60
jmp 0x431b2c
push 5
push str..pdf
call fcn.0041d170
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 3
call fcn.00443e11
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x268]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x274], esp
mov esi, esp
mov dword [ebp - 0x278], esi
push eax
mov dword [ebp - 0x278], eax
call fcn.0041ce80
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x264]
mov esi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x260], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0041ce80
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 4
push eax
call fcn.004338b0
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x432340
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x25c], edi
mov ebx, dword [ebp - 0x2bc]
mov dword [ebp - 0x244], ebx
mov dword [ebp - method.CArray_struct_HWND_____struct_HWND____.virtual_0], vtable.CArray_bool__bool_const__.0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x284], 0
push ecx
push ebx
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 7
call fcn.00433d80
push ebx
mov ebx, dword [ebp - 0x248]
push str._RFT__astrFileNameArray.GetCount_Ret:_d
push dword [ebx + 0x614]
call fcn.00437650
push dword [ebp - 0x298]
push str._RFT__GetSaveFolder_Ret:_s
push dword [ebx + 0x614]
call fcn.00437650
mov eax, dword [ebp - 0x298]
add esp, 0x18
or esi, 0xffffffff
test eax, eax
je 0x432265
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x432265
push dword [ebp - 0x298]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x431c8b
push str._RFT__PathIsDirectory_Error
push dword [ebx + 0x614]
call fcn.00437650
add esp, 8
mov dword [ebp - 0x258], 0x35
jmp 0x43226f
xorps xmm0, xmm0
xor eax, eax
xor ebx, ebx
movlpd qword [ebp - 0x240], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], ebx
cmp dword [ebp - 0x244], eax
jle 0x432122
test ebx, ebx
js 0x43234a
cmp ebx, dword [ebp - 0x2bc]
jge 0x43234a
mov eax, dword [ebp - 0x2c0]
lea esi, [edi - 0x10]
mov ecx, dword [eax + ebx*4]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x431d41
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x431d2c
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x431d2c
push edx
call fcn.0041ce80
add esp, 4
mov dword [ebp - 0x24c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x431d21
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x25c], edi
jmp 0x431d41
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0041d170
mov edi, dword [ebp - 0x25c]
push 0x4b47d8
push dword [ebp - 0x264]
lea eax, [ebp - 0x274]
push eax
call fcn.0042eb30
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00433be0
add esp, 0x18
mov byte [ebp - 4], 0xa
or esi, 0xffffffff
mov edx, dword [ebp - 0x274]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431d97
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x432336
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
push edi
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x24c]
push dword [ebp - 0x298]
push 0x4b4784
push eax
call fcn.00420820
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004332a0
cmp eax, 1
jne 0x431e44
push eax
mov eax, dword [ebp - 0x248]
push edi
push str._RFT__IsSameFaxFileRecieved__s__Ret:_d
push dword [eax + 0x614]
call fcn.00437650
add esp, 0x10
cmp ebx, dword [ebp - 0x284]
jge 0x43234a
mov eax, dword [ebp - 0x288]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
mov byte [eax + ebx], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431e3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x432007
lea eax, [ebp - 0x24c]
push eax
call fcn.00433350
push 0
test eax, eax
je 0x4320b9
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x254]
call fcn.00452e95
test eax, eax
je 0x43208a
mov ebx, dword [ebp - 0x228]
lea eax, [ebp - 0x2d4]
mov esi, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x431eb0
xorps xmm0, xmm0
movlpd qword [ebp - 0x2d4], xmm0
cmp esi, dword [ebp - 0x2c8]
ja 0x43203e
jb 0x431eca
cmp ebx, dword [ebp - 0x2cc]
ja 0x43203e
mov esi, dword [ebp - 0x24c]
push 1
push esi
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
mov eax, dword [ebp - 0x248]
push ebx
push edi
push str._RFT__CopyFile__s__Ret:_d
push dword [eax + 0x614]
call fcn.00437650
add esp, 0x10
test ebx, ebx
je 0x4320d9
cmp dword [edi - 0xc], 0xe
jg 0x431f21
lea eax, [edi - 0x10]
push eax
call fcn.0041ce80
add esp, 4
add eax, 0x10
mov dword [ebp - 0x250], eax
jmp 0x431f4c
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x431f31
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x431f3d
call fcn.0043a11f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 0xe
push edi
lea ecx, [ebp - 0x250]
call fcn.0041c940
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004328c0
test eax, eax
je 0x431f9e
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x431f9e
lea eax, [ebp - 0x2b0]
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x26c]
mov ebx, dword [ebp - 0x260]
mov dword [eax], 1
cmp ebx, dword [ebp - 0x284]
jge 0x43234a
mov eax, dword [ebp - 0x288]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov byte [eax + ebx], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431fe8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x432004
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
mov dword [ebp - 0x260], ebx
cmp ebx, dword [ebp - 0x244]
jl 0x431cc2
jmp 0x432122
mov eax, dword [ebp - 0x248]
push 0
push dword [ebp - 0x298]
push str._RFT__IsEnoughDiskFreeSpace__s__Error_Ret:_d
push dword [eax + 0x614]
call fcn.00437650
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24c]
add esp, 0x10
mov dword [ebp - 0x258], 0x36
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432101
mov ecx, dword [edx]
push edx
jmp 0x4320fc
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x258], 0x34
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4320b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x432103
mov eax, dword [ebp - 0x248]
mov esi, dword [ebp - 0x24c]
push esi
push str._RFT__CreateReceivedFaxFilePath__s__Error_Ret:_d
push dword [eax + 0x614]
call fcn.00437650
add esp, 0x10
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
mov eax, ebx
mov dword [ebp - 0x258], 0x35
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x432101
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x254]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432122
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x244], eax
jle 0x432260
test esi, esi
js 0x43234a
cmp esi, dword [ebp - 0x284]
jge 0x43234a
mov eax, dword [ebp - 0x288]
cmp byte [eax + esi], 1
jne 0x43224b
cmp esi, dword [ebp - 0x2bc]
jge 0x43234a
mov eax, dword [ebp - 0x2c0]
lea ebx, [edi - 0x10]
mov ecx, dword [eax + esi*4]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4321d3
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x4321be
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4321be
push edx
call fcn.0041ce80
add esp, 4
mov dword [ebp - 0x26c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4321b3
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x26c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x25c], edi
jmp 0x4321d3
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0041d170
mov edi, dword [ebp - 0x25c]
push dword [ebp - 0x270]
mov ecx, dword [ebp - 0x248]
push edi
call fcn.00432cc0
mov ecx, eax
mov dword [ebp - 0x258], ecx
test ecx, ecx
jne 0x4321fc
mov eax, dword [ebp - 0x288]
mov byte [eax + esi], cl
jmp 0x43224b
cmp ecx, 0x41
jne 0x432241
mov ebx, dword [ebp - 0x250]
cmp ebx, 0xa
jge 0x43224b
mov eax, dword [ebp - 0x248]
push edi
push str._RFT__FinishImportFax__s__EDITING
push dword [eax + 0x614]
call fcn.00437650
mov eax, dword [ebp - 0x248]
add esp, 0xc
push dword [eax + 0x610]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
mov dword [ebp - 0x250], ebx
jmp 0x432254
cmp ecx, 0x3d
je 0x432260
cmp ecx, 0x40
je 0x432260
xor eax, eax
inc esi
mov dword [ebp - 0x250], eax
cmp esi, dword [ebp - 0x244]
jl 0x432138
or esi, 0xffffffff
jmp 0x43226f
mov dword [ebp - 0x258], 0x6c
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x432282
push eax
call fcn.00439c20
add esp, 4
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43229d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c4]
call fcn.00443e28
mov edx, dword [ebp - 0x278]
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4322c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x4322dd
push eax
call fcn.00439c20
add esp, 4
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x4322f0
push eax
call fcn.00439c20
add esp, 4
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x432303
push eax
call fcn.00439c20
add esp, 4
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x432316
push eax
call fcn.00439c20
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468009
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0041d300
push 0x80004005
call fcn.0041d300
call fcn.00439c90
int3