Function at 0x102481b
Capabilities:
Write file on windows

Disassembly:
push 0x14
mov eax, 0x1031b59
call fcn.01025fed
mov esi, ecx
mov eax, dword [ebp + 8]
mov byte [ebp - 0xd], 1
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1024833
sub eax, ecx
sar eax, 1
add eax, eax
cmp byte [esi + 0x14], dl
mov dword [ebp - 0x20], eax
mov edi, 0xc000c445
je 0x1024924
push 1
lea eax, [ebp - 0x18]
push eax
push esi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1024890
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1024890
mov eax, dword [esi + 8]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, edx
jae 0x1024886
inc dword [esi + 0xc]
mov dword [esi + 8], ecx
jmp 0x1024920
add eax, edx
mov dword [esi + 8], eax
jmp 0x1024920
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov ebx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax + 4]
mov ebx, dword [esi + 0x28]
push 1
push 1
push 2
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + ebx + 4]
mov eax, dword [ebp - 0x1c]
push edi
call dword [eax + 4]
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [esi + 0x14], 0
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10249ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x3e5
jne 0x1024959
mov byte [esi + 0x14], 1
jmp 0x1024a06
lea ecx, [ebp + 8]
mov byte [esi + 0x14], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov byte [ebp - 4], 3
push ebx
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax + 4]
mov ebx, dword [esi + 0x28]
push 1
push 1
push 2
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + ebx + 4]
mov eax, dword [ebp - 0x20]
push edi
call dword [eax + 4]
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x1024a06
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, edx
jae 0x1024a01
inc dword [esi + 0xc]
mov dword [esi + 8], ecx
jmp 0x1024a06
add eax, edx
mov dword [esi + 8], eax
cmp byte [ebp + 0xc], 0
je 0x1024a15
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, byte [ebp - 0xd]
call fcn.010260d9
ret 8