Function at 0x100093b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x78
push esi
call dword [0x100102e4]
mov esi, eax
test esi, esi
jg 0x100093ca
or eax, 0xffffffff
pop esi
add esp, 0x78
ret 0x10
mov eax, dword [esp + 0x8c]
sar eax, 0x10
sub esi, eax
test esi, esi
mov dword [esp + 4], esi
jg 0x100093e8
or eax, 0xffffffff
pop esi
add esp, 0x78
ret 0x10
mov ecx, dword [esp + 0x80]
push ebx
push ebp
push edi
push ecx
lea edx, [esp + 0x3c]
push 0x100093a0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x8000000
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
mov eax, 0x55555556
imul esi
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
call dword [0x10010310]
mov edi, dword [eax + 8]
mov ecx, dword [eax + 4]
mov ebp, edi
imul ebp, ecx
push 4
push 0x1000
push 0x5200
lea esi, [ebp + 0x1ff]
push 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edi
and esi, 0xfffffe00
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, ecx
sub eax, edi
test eax, eax
lea edx, [ebx + 0x200]
push edx
jle 0x1000949b
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [ecx + 0x10]
sar eax, 1
add eax, edx
push eax
push edi
push edi
jmp 0x100094a5
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
push edx
push edi
push ecx
push 0x80
push 0x80
call fcn.1000edb0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
imul esi, eax
mov dword [0x10025c38], esi
mov dword [ebx], ecx
or ecx, 0xffffffff
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], 8
mov dword [ebx + 0x10], 0x73412317
mov dword [ebx + 0x68], 1
mov edi, 0x10025c14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10029c3c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [ebx + 0x34]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x10025c00
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [ebx + 0x54]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 4
and ecx, 3
push 0x1000
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebx + 0x4200]
mov dword [eax], 0x5200
push ebp
add eax, 4
push 0
mov dword [esp + 0x2c], 0x5200
mov dword [esp + 0x30], eax
call esi
push 4
push 0x1000
push ebp
push 0
mov dword [esp + 0x40], eax
call esi
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x5200
mov dword [esp + 0x40], eax
push ebx
mov ebp, dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x10009661
push edi
call dword [0x100102dc]
mov edx, dword [esp + 0x24]
push 0x17
push 8
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, edi
and ecx, 1
mov ebp, dword [esp + ecx*4 + 0x3c]
mov ecx, dword [esp + 0x24]
push ecx
push edx
push eax
push 0x100000
push ebp
push 0x10025c3c
call fcn.10008be0
test eax, eax
jle 0x1000965d
lea esi, [eax + 0x1ff]
push edi
and esi, 0xfffffe00
call dword [0x1001030c]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x30]
push ecx
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, esi
mov dword [ecx], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
add ecx, 4
test eax, eax
mov dword [esp + 0x20], ecx
je 0x10009650
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x94]
push ecx
push edi
push edx
call eax
cmp eax, 0xffffffff
je 0x1000965d
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x100095b8
mov ebp, dword [esp + 0x14]
push 0
push 0
push 0
push ebp
mov dword [ebx + 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x2c]
push eax
push 0x5200
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push ecx
call esi
mov edx, dword [esp + 0x34]
push 0x8000
push 0
push edx
call esi
push 0x8000
push 0
push ebx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x78
ret 0x10