Function at 0x109100fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x494
and byte [ebp + 0x64], 0
and byte [ebp + 0x65], 0
and byte [ebp + 0x66], 0
and byte [ebp + 0x67], 0
and byte [ebp + 0x6c], 0
or byte [ebp + 0x6f], 0xff
and byte [ebp + 0x5c], 0
or byte [ebp + 0x63], 0xff
push ebx
push esi
push edi
mov ebx, ecx
push 0x1b
xor eax, eax
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
xor edx, edx
cmp eax, 0x14
mov byte [ebp + 0x6d], 0x55
mov byte [ebp + 0x6e], 0xaa
mov byte [ebp + 0x5d], 0x24
mov byte [ebp + 0x5e], 0x49
mov byte [ebp + 0x5f], 0x6d
mov byte [ebp + 0x60], 0x92
mov byte [ebp + 0x61], 0xb6
mov byte [ebp + 0x62], 0xdb
mov dword [ebp + 0x68], edx
je 0x10910298
cmp eax, 0x1b
je 0x10910234
cmp eax, 0x29
je 0x109101ca
cmp eax, 0x32
je 0x10910181
mov eax, 0x80004005
jmp 0x109103d4
mov dword [ebp - 0x24], 0x28
mov dword [ebp - 0x14], edx
mov word [ebp - 0x16], 8
mov dword [ebp + 0x68], 0x400
xor ecx, ecx
mov eax, ecx
shl eax, 2
and byte [ebp + eax - 0x421], 0
mov byte [ebp + eax - 0x422], cl
mov byte [ebp + eax - 0x423], cl
mov byte [ebp + eax - 0x424], cl
inc ecx
cmp ecx, 0x100
jb 0x1091019a
jmp 0x109102a8
mov eax, dword [ebx + 8]
mov ecx, eax
lea esi, [eax + 2]
lea eax, [ebp - 0x423]
xor edi, edi
mov dword [ebp - 0x24], 0x28
mov dword [ebp - 0x14], edx
mov word [ebp - 0x16], 8
mov dword [ebp + 0x68], 0x400
sub ecx, eax
mov eax, edi
shl eax, 2
lea edx, [ecx + eax]
mov dl, byte [ebp + edx - 0x423]
mov byte [ebp + eax - 0x422], dl
mov dl, byte [esi - 1]
mov byte [ebp + eax - 0x423], dl
mov dl, byte [esi]
and byte [ebp + eax - 0x421], 0
inc edi
add esi, 4
cmp edi, 0x100
mov byte [ebp + eax - 0x424], dl
jb 0x109101f3
xor edx, edx
jmp 0x109102a8
mov dword [ebp - 0x24], 0x28
mov dword [ebp - 0x14], edx
mov word [ebp - 0x16], 8
mov dword [ebp + 0x68], 0x400
xor esi, esi
mov ecx, esi
shr ecx, 5
mov cl, byte [ebp + ecx + 0x5c]
mov eax, esi
shl eax, 2
and byte [ebp + eax - 0x421], 0
mov byte [ebp + eax - 0x422], cl
mov ecx, esi
shr ecx, 2
and ecx, 7
mov cl, byte [ebp + ecx + 0x5c]
mov byte [ebp + eax - 0x423], cl
mov ecx, esi
and ecx, 3
mov cl, byte [ebp + ecx + 0x6c]
inc esi
cmp esi, 0x100
mov byte [ebp + eax - 0x424], cl
jb 0x1091024d
jmp 0x109102a8
mov dword [ebp - 0x24], 0x28
mov dword [ebp - 0x14], edx
mov word [ebp - 0x16], 0x18
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov esi, 0xb12
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
movzx esi, word [ebp - 0x16]
shr esi, 3
mov dword [ebp - 0x20], ecx
imul ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x6c], ecx
add ecx, 3
and ecx, 0xfffffffc
imul eax, ecx
mov dword [ebp + 0x60], ecx
mov ecx, dword [ebp + 0x68]
lea ecx, [eax + ecx + 0x36]
xor eax, eax
lea edi, [ebp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp + 0x58], esi
lea esi, [ecx + 3]
stosw word es:[edi], ax
and esi, 0xfffffffc
sub esi, ecx
lea eax, [esi + ecx]
mov dword [ebp + 0x4a], eax
mov eax, dword [ebp + 0x68]
add eax, 0x36
cmp dword [ebp + 0x7c], edx
mov word [ebp - 0x18], 1
mov word [ebp + 0x48], 0x4d42
mov dword [ebp + 0x52], eax
je 0x1091032a
push edx
lea eax, [ebp + 0x7c]
push eax
push 0xe
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_WriteFile]
xor edx, edx
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
push edx
lea eax, [ebp + 0x7c]
push eax
push 0x28
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x78]
call edi
cmp dword [ebp + 0x68], 0
je 0x1091035b
push 0
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 0x78]
call edi
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
imul eax, ecx
imul edx, dword [ebp + 0x58]
mov edi, dword [ebx + 0x10]
add eax, edx
add eax, dword [ebx + 4]
dec edi
imul edi, ecx
add edi, eax
cmp edi, eax
mov dword [ebp + 0x58], eax
jb 0x109103ba
push 0
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x6c]
push edi
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, dword [ebp + 0x60]
cmp dword [ebp + 0x6c], eax
jae 0x109103b2
sub eax, dword [ebp + 0x6c]
push 0
lea ecx, [ebp + 0x7c]
push ecx
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_WriteFile]
sub edi, dword [ebx + 0x30]
cmp edi, dword [ebp + 0x58]
jae 0x10910380
test esi, esi
je 0x109103d2
push 0
lea eax, [ebp + 0x7c]
push eax
push esi
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_WriteFile]
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8