Function at 0x11035e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x11035e14
call fcn.11035d20
cmp dword [esi + 0x24], 0
je 0x11035e23
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
cdq
add dword [esi + 0x38], eax
mov eax, dword [esi + 0x20]
push ebx
adc dword [esi + 0x3c], edx
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
push edi
lea ebx, [ecx + eax*4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x20]
imul edi, dword [esi]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0xc]
add edi, dword [esi + 0x14]
cmp ecx, eax
jge 0x11035e5d
mov eax, ecx
sub ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x11035e90
mov ecx, dword [esi + 0x28]
push eax
mov eax, dword [ebp + 8]
push eax
add ecx, edi
push ecx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 4]
add dword [esi + 0x28], eax
add esp, 0xc
sub dword [esi + 0x2c], eax
je 0x11035e90
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 0x1c]
cmp edx, dword [esi + 0x34]
jb 0x11035ed7
ja 0x11035ea2
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x30]
jb 0x11035ed7
mov edx, dword [esi + 0xc]
push 1
lea ecx, [ebp - 8]
push ecx
push ebx
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x11035ece
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jae 0x11035ed7
mov dword [esi + 0x24], 0x70
jmp 0x11035ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
mov ecx, dword [esi]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], ecx
mov edx, dword [ebx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov cl, 0x20
call fcn.111d9330
push ebx
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
xor ebx, ebx
push ebx
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x11035f48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x11035f48
push edi
push edi
push str.Error__d__x_x__writing_file_n
call fcn.111bd7b0
add esp, 0xc
mov dword [esi + 0x24], edi
mov eax, dword [esi]
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], ebx
inc dword [esi + 0x20]
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 4]
jl 0x11035f5e
mov dword [esi + 0x20], ebx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x11035fe9
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 8]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*4 + 0x10]
lea edi, [edx + ecx*4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [esi + 0x34]
jb 0x11035fc9
ja 0x11035f94
mov edx, dword [esi + 0x18]
cmp edx, dword [esi + 0x30]
jb 0x11035fc9
mov ecx, dword [esi + 0xc]
push 1
lea eax, [ebp - 8]
push eax
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x11035fc0
mov edx, dword [ebp - 8]
cmp edx, dword [esi]
jae 0x11035fc9
mov dword [esi + 0x24], 0x70
jmp 0x11035fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x24], eax
mov edx, dword [esi + 0x20]
imul edx, dword [esi]
mov eax, dword [ebp - 4]
add eax, dword [ebp + 8]
add edx, dword [esi + 0x14]
push ebx
push eax
push edx
call sub.MSVCR100.dll_memcpy
add dword [esi + 0x28], ebx
add esp, 0xc
sub dword [esi + 0x2c], ebx
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8