Function at 0x10003190
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x1001ad80]
sub esp, 0x3c
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x100031c7
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
call fcn.100091f0
add esp, 0x14
pop edi
pop esi
add esp, 0x3c
ret
mov edx, dword [0x1001aca0]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1001aca8
call esi
mov eax, dword [0x1001aca4]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000334b
mov eax, dword [0x1001acd4]
cmp eax, edi
je 0x10003371
mov ecx, dword [eax]
push 0x10
lea edx, [esp + 0x20]
push edi
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
mov eax, dword [0x1001acd4]
mov ecx, dword [eax]
jl 0x10003367
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
jl 0x10003355
push ebx
mov ebx, dword [esp + 0x58]
mov esi, ebx
push ebp
imul esi, dword [esp + 0x60]
shl esi, 2
push esi
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x60]
xor edi, edi
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x10], eax
jbe 0x100032e3
mov edx, dword [esp + 0x44]
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x58]
lea esi, [eax + ecx]
mov eax, dword [esp + 0x48]
cmp esi, eax
jae 0x100032dd
xor eax, eax
test ebx, ebx
jbe 0x100032c2
mov ecx, dword [esp + 0x54]
add ecx, eax
cmp ecx, edx
jae 0x100032c2
mov edi, esi
imul edi, edx
mov edx, dword [esp + 0x5c]
add edi, ecx
mov ecx, dword [esp + 0x28]
add edx, eax
inc eax
mov ecx, dword [ecx + edi*4]
cmp eax, ebx
mov dword [ebp + edx*4], ecx
mov edx, dword [esp + 0x44]
jb 0x10003297
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
inc eax
add esi, ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], esi
jb 0x10003282
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [0x1001acd4]
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [0x1001acd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [0x1001aca0]
mov dword [0x1001acd4], edi
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
push 8
push ecx
push edi
mov dword [esp + 0x30], esi
call ebx
lea edx, [esp + 0x18]
push 0
push edx
push esi
push ebp
push edi
call ebx
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x3c
ret
push edi
push 0x1001aca8
call esi
jmp 0x10003371
mov eax, dword [0x1001acd4]
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [0x1001acd4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [0x1001acd4], edi
mov edx, dword [0x1001aca0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x58]
push edi
push eax
lea ecx, [esp + 0x1c]
push 8
push ecx
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x3c
ret