Function at 0x10144f8
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
or dword [ebp - 8], 0xffffffff
or dword [ebp - 0x20], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
xor eax, eax
cmp dword [0x103c194], esi
mov word [ebp - 0x234], si
mov ecx, 0x81
lea edi, [ebp - 0x232]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosw word es:[edi], ax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
jne 0x1014557
call fcn.01013f41
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1014815
mov dword [0x103c194], 1
push dword [ebp + 8]
call fcn.0103202c
test eax, eax
jne 0x101456e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1014815
push 0x1001c34
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x1001a88
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
test eax, eax
jge 0x101459c
push 0x1f
pop eax
jmp 0x1014815
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push 0x80
push 4
push esi
push 1
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x10145d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1014788
push 0x1001c18
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x1001a88
push 0x103
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
test eax, eax
jge 0x1014604
mov dword [ebp - 4], 0x1f
jmp 0x101479c
push esi
push 0x80
push 4
push esi
push 1
push ebx
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10145c4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10145c4
cmp dword [ebp - 0x2c], esi
jne 0x1014677
cmp dword [ebp - 0x28], esi
jne 0x1014677
push 0x1001fa0
lea eax, [ebp - 0x14]
push eax
call fcn.010141e8
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x101478d
push esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1014687
push 2
push esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10145c4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10145c4
cmp dword [ebp - 0x2c], esi
jne 0x10146e7
cmp dword [ebp - 0x28], esi
jne 0x10146e7
push 0x10020a4
lea eax, [ebp - 0x1c]
push eax
call fcn.010141e8
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x101478d
push esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x10146f7
push 2
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10145c4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push 0x100208c
push dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp - 0x234]
push 0x1001a88
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push ebx
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x1014751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x10147ba
lea eax, [ebp - 0x18]
push eax
call fcn.010142db
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10147ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], esi
je 0x10147ab
cmp dword [ebp - 8], 0xffffffff
je 0x101479c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0xffffffff
je 0x10147ab
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xffffffff
je 0x10147ba
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], esi
je 0x10147fa
push 0x18
pop eax
call fcn.0102e8e0
mov edi, esp
cmp edi, esi
je 0x10147df
push dword [ebp - 0x10]
push 0x1001814
push edi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push edi
lea eax, [ebp - 0x234]
push eax
push 0x80007d4d
push 2
push 2
push 1
call sub.FXSEVENT.dll_FaxLog
add esp, 0x18
push dword [ebp - 0x14]
call fcn.01031b59
push dword [ebp - 0x1c]
call fcn.01031b59
push dword [ebp - 0x18]
call fcn.01031b59
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x240]
pop edi
pop esi
pop ebx
leave
ret 0xc