Function at 0x10397b5
Capabilities:
Copy file
Timestomp file

Disassembly:
push 0x244
mov eax, 0x106b21c
call fcn.0101da7e
xor ebx, ebx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
call sub.MFC42u.dll_CString::CString_3
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString_3
or dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x234], ebx
mov eax, dword [0x1077004]
mov edi, 0x1077004
mov esi, 0x100a2b8
cmp eax, edi
je 0x103982e
test dword [eax + 0x1c], 0x100
je 0x103982e
cmp byte [eax + 0x19], 4
jb 0x103982e
push esi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.FXSAPI.dll_FaxConnectFaxServerW]
test eax, eax
jne 0x103987f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x1039ba0
test dword [ecx + 0x1c], 0x100
je 0x1039ba0
cmp byte [ecx + 0x19], 2
jb 0x1039ba0
push eax
push esi
push 0x2b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101e0d7
jmp 0x1039ba0
lea eax, [ebp - 0x234]
push eax
push ebx
push dword [ebp - 0x22c]
call dword [sym.imp.FXSAPI.dll_FaxGetGeneralConfiguration]
test eax, eax
jne 0x10398c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x1039ba0
test dword [ecx + 0x1c], 0x100
je 0x1039ba0
cmp byte [ecx + 0x19], 2
jb 0x1039ba0
push eax
push esi
push 0x2c
jmp 0x103986f
mov eax, dword [ebp - 0x234]
push dword [eax + 8]
call fcn.0102139e
mov dword [ebp - 0x238], eax
cmp eax, ebx
jne 0x1039914
mov eax, dword [0x1077004]
cmp eax, edi
je 0x1039ba0
test dword [eax + 0x1c], 0x100
je 0x1039ba0
cmp byte [eax + 0x19], 2
jb 0x1039ba0
push 8
push esi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x1039875
push eax
call fcn.01021611
mov dword [ebp - 0x230], eax
cmp eax, ebx
jne 0x1039958
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x1039ba0
test dword [ecx + 0x1c], 0x100
je 0x1039ba0
cmp byte [ecx + 0x19], 2
jb 0x1039ba0
push eax
push esi
push 0x2e
jmp 0x103986f
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov byte [ebp - 4], 2
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
call fcn.0101cb36
push 0x1005274
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::operator_1
push 0x100a6a8
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::operator_1
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call fcn.010226db
cmp eax, ebx
je 0x1039a04
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x1039ba0
test dword [ecx + 0x1c], 0x100
je 0x1039ba0
cmp byte [ecx + 0x19], 2
jb 0x1039ba0
push eax
push 0x100a668
push esi
push 0x2f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101ea0b
jmp 0x1039ba0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0101cb36
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x1079b90
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.0101d3fa
push 0x1005274
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::operator_1
push 0x100a648
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::operator_1
push ebx
push dword [ebp - 0x224]
mov dword [ebp - 4], ebx
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor ebx, ebx
cmp eax, ebx
jne 0x1039a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1039ba0
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp - 0x224]
call fcn.0101f05f
mov dword [ebp - 0x228], eax
cmp eax, 0xffffffff
jne 0x1039ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, edi
je 0x1039ba0
test dword [ecx + 0x1c], 0x100
je 0x1039ba0
cmp byte [ecx + 0x19], 2
jb 0x1039ba0
push eax
push 0x100a60c
push esi
push 0x32
jmp 0x10399f4
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp eax, ebx
je 0x1039ba0
lea eax, [ebp - 0x240]
push eax
push eax
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x1039ba0
xor ebx, ebx
cmp dword [ebp - 0x234], ebx
je 0x1039bb6
push dword [ebp - 0x234]
call dword [sym.imp.FXSAPI.dll_FaxFreeBuffer]
cmp dword [ebp - 0x238], ebx
je 0x1039bc9
push dword [ebp - 0x238]
call fcn.0101e9ef
cmp dword [ebp - 0x230], ebx
je 0x1039bdc
push dword [ebp - 0x230]
call fcn.0101e9ef
cmp dword [ebp - 0x228], 0xffffffff
je 0x1039c27
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1039c27
mov eax, dword [0x1077004]
cmp eax, edi
je 0x1039c27
test dword [eax + 0x1c], 0x100
je 0x1039c27
cmp byte [eax + 0x19], 3
jb 0x1039c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1077004]
push esi
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
cmp dword [ebp - 0x22c], ebx
je 0x1039c3b
push dword [ebp - 0x22c]
call dword [sym.imp.FXSAPI.dll_FaxClose]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString
call fcn.0101dae9
ret