Function at 0x41ea6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x41ea86
xor eax, eax
inc eax
jmp 0x41ec36
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41ea93
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x41ea7e
push ebx
push edi
push 0x41ea4b
push 0x10
pop edi
push edi
push dword [ebp - 4]
push dword [esi + 0x9c]
call fcn.004533e0
mov eax, dword [esi + 0x9c]
push dword [eax + 8]
push dword [eax + 0xc]
push dword [esi + 0x98]
call fcn.00451390
mov eax, dword [esi + 0x9c]
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
xor eax, eax
inc eax
add esp, 0x1c
mov dword [ebp - 0x18], ecx
mov dword [ebp + 8], eax
cmp dword [ebp - 4], eax
jbe 0x41ec0b
mov eax, dword [esi + 0x9c]
add eax, edi
mov ecx, dword [eax - 8]
xor edx, edx
add ecx, dword [eax - 0x10]
adc edx, dword [eax - 0xc]
cmp ecx, dword [eax]
jne 0x41eb39
cmp edx, dword [eax + 4]
jne 0x41eb39
mov eax, dword [esi + 0x9c]
push dword [eax + edi + 8]
push dword [eax + edi + 0xc]
mov eax, dword [esi + 0x98]
add eax, ebx
push eax
call fcn.00451390
mov eax, dword [esi + 0x9c]
add esp, 0xc
add ebx, dword [edi + eax + 8]
jmp 0x41ebf9
cmp dword [esi + 0x10], 1
jne 0x41eb5d
push dword [esi + 0x94]
lea eax, [esi + 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [esi + 0x98]
call fcn.0044e9af
jmp 0x41ebc6
and dword [ebp - 0xc], 0
cmp dword [esi + 0x94], 0
jbe 0x41ebc6
lea eax, [esi + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [eax]
call fcn.0044df99
cmp eax, dword [ebp - 0x18]
jne 0x41ec3b
cmp edx, dword [ebp - 0x14]
jne 0x41ec3b
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push ebx
push dword [esi + 0x98]
push dword [eax]
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
test eax, eax
je 0x41ec64
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 4
cmp eax, dword [esi + 0x94]
jb 0x41eb70
mov eax, dword [esi + 0x9c]
push dword [eax + edi + 8]
push dword [eax + edi + 0xc]
push dword [esi + 0x98]
call fcn.00451390
mov eax, dword [esi + 0x9c]
mov ecx, dword [eax + edi]
mov ebx, dword [eax + edi + 8]
mov eax, dword [eax + edi + 4]
add esp, 0xc
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0x10
cmp eax, dword [ebp - 4]
jb 0x41eaef
test ebx, ebx
je 0x41ec31
cmp dword [esi + 0x10], 1
jne 0x41ec7a
push dword [esi + 0x94]
lea eax, [esi + 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
push dword [esi + 0x98]
call fcn.0044e9af
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 4
mov eax, dword [ebp - 0xc]
push dword [esi + eax*4 + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str.cant_seek_to__I64d_0x_I64lx__for_handle_0x_x_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0xa1
jmp 0x41ecf6
push str.cant_write_to_file_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0xa7
jmp 0x41ed16
and dword [ebp + 8], 0
cmp dword [esi + 0x94], 0
jbe 0x41ec31
lea edi, [esi + 0x14]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [edi]
call fcn.0044df99
cmp eax, dword [ebp - 0x18]
jne 0x41ecd2
cmp edx, dword [ebp - 0x14]
jne 0x41ecd2
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [esi + 0x98]
push dword [edi]
call dword [sym.imp.___total_physical_size__lu_MB_WriteFile]
test eax, eax
je 0x41ed05
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 4
cmp eax, dword [esi + 0x94]
jb 0x41ec8a
jmp 0x41ec31
mov eax, dword [ebp + 8]
push dword [esi + eax*4 + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str.cant_seek_to__I64d_0x_I64lx__for_handle_0x_x_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0xc3
push 0x46dbec
call fcn.0044dc85
add esp, 0x24
jmp 0x41ed23
push str.cant_write_to_file_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0xc9
push 0x46dbec
call fcn.0044dc85
add esp, 0x10
xor eax, eax
jmp 0x41ec34