Function at 0x10008c80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x69c
push ebx
call dword [0x100102e4]
xor ebx, ebx
cmp eax, ebx
jg 0x10008ca0
or eax, 0xffffffff
pop ebx
add esp, 0x69c
ret 0x10
mov ecx, dword [esp + 0x6b0]
sar ecx, 0x10
sub eax, ecx
cmp eax, ebx
mov dword [esp + 8], eax
jg 0x10008cc1
or eax, 0xffffffff
pop ebx
add esp, 0x69c
ret 0x10
push ebp
push esi
mov ebp, 0x100
push edi
xor eax, eax
lea ecx, [esp + 0x2ac]
mov edx, ebp
mov dword [ecx], eax
add eax, 0x10101
add ecx, 4
dec edx
jne 0x10008cd4
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0xac]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, 0x10008f40
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x1ac]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [0x100102dc]
cmp eax, ebx
je 0x10008d8b
mov ecx, dword [eax + 4]
imul ecx, dword [eax + 8]
lea edx, [ecx + 0x600]
mov word [esp + 0x24], 0x4d42
mov dword [esp + 0x26], edx
mov word [esp + 0x2c], bx
mov word [esp + 0x2a], bx
mov dword [esp + 0x2e], 0x600
mov dword [esp + 0x34], 0x28
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], 1
mov word [esp + 0x42], 8
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
jmp 0x10008d8f
mov ecx, dword [esp + 0x48]
push 4
push 0x1000
push ecx
push ebx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x20], ecx
mov dword [0x10025c38], ebx
jle 0x10008f01
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x6b0]
push edi
push edx
lea eax, [esp + 0x64]
push 0x10008f30
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x8000080
push 1
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008eff
push edi
call dword [0x1001030c]
push edi
call dword [0x100102dc]
test eax, eax
je 0x10008ecb
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
push ebp
push ebp
push ecx
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push ebp
push edx
push eax
call fcn.1000cc30
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xe
lea edx, [esp + 0x30]
push edx
push esi
call ebx
cmp dword [esp + 0x10], 0xe
jne 0x10008ecb
push 0
lea eax, [esp + 0x14]
push eax
push 0x28
lea ecx, [esp + 0x40]
push ecx
push esi
call ebx
cmp dword [esp + 0x10], 0x28
jne 0x10008ecb
push 0
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x2b8]
push eax
push esi
call ebx
cmp dword [esp + 0x10], 0x400
jne 0x10008ecb
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x1ca
lea edx, [esp + 0xb8]
push edx
push esi
call ebx
cmp dword [esp + 0x10], 0x1ca
jne 0x10008ecb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x6b4]
test eax, eax
je 0x10008ef2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x6b8]
push ecx
push edi
push edx
call eax
cmp eax, 0xffffffff
je 0x10008eff
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x10008dcc
xor ebx, ebx
mov eax, dword [esp + 0x18]
push 0x8000
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, edi
imul ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [0x10025c38], ecx
pop ebx
add esp, 0x69c
ret 0x10