Function at 0x100091f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call esi
push edi
push 1
push 1
push edi
mov dword [0x1001ae3c], eax
call esi
push eax
mov dword [0x1001ae38], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 1
push 0x1001ae40
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [0x1001ae3c]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10009434
mov eax, dword [0x1001ae44]
test eax, eax
je 0x10009434
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x80]
test eax, eax
jl 0x10009434
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jl 0x1000940e
mov eax, dword [0x1001ae44]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push edx
push eax
call dword [ecx + 0x6c]
test eax, eax
jl 0x1000941a
mov edx, dword [esp + 8]
mov eax, dword [0x1001ae44]
push edi
push edx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edi
push edx
push eax
call dword [ecx + 0x70]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [0x1001ae38]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 8]
test esi, esi
jl 0x10009412
mov ecx, dword [eax]
push 0x10
lea edx, [esp + 0x28]
push edi
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
jl 0x10009430
lea edx, [esp + 0x2c]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x10009420
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov ebp, ebx
imul ebp, dword [esp + 0x68]
shl ebp, 2
push ebp
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
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 eax, dword [esp + 0x68]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
jbe 0x100093b3
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x64], edi
mov eax, dword [esp + 0x60]
add edi, eax
mov eax, dword [esp + 0x50]
cmp edi, eax
jae 0x100093b3
xor eax, eax
test ebx, ebx
jbe 0x10009398
mov ecx, dword [esp + 0x5c]
add ecx, eax
cmp ecx, edx
jae 0x10009398
mov ebp, edi
imul ebp, edx
mov edx, dword [esp + 0x64]
add ebp, ecx
mov ecx, dword [esp + 0x30]
add edx, eax
inc eax
mov ecx, dword [ecx + ebp*4]
mov ebp, dword [esp + 0x18]
mov dword [esi + edx*4], ecx
mov edx, dword [esp + 0x4c]
cmp eax, ebx
jb 0x1000936a
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
inc edi
add ecx, ebx
cmp edi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x64], ecx
jb 0x10009356
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, dword [esp + 0x58]
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x2c]
push 8
push eax
push ebx
mov edi, 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x20]
push 0
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
pop ebx
jmp 0x10009434
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x10009434
mov eax, dword [esp + 0xc]
jmp 0x1000942e
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [0x1001ae3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [0x1001ae38]
push eax
call esi
test edi, edi
pop edi
pop esi
jne 0x10009487
mov ecx, dword [0x1001ae38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x58]
push 0
push edx
lea eax, [esp + 0x1c]
push 8
push eax
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x44
ret