Function at 0x8a8001
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
cmp dword [0x4b205c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
jne 0x8a8029
cmp dword [0x4b2058], 0
jne 0x8a8029
xor al, al
jmp 0x8a83c5
push ecx
lea ecx, [ebp - 0x38]
call fcn.008408d5
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x100]
cmovae eax, dword [ebp - 0x38]
movzx eax, word [eax]
push eax
call fcn.008a7218
cmp dword [ebp - 0xdc], 0
jne 0x8a805f
xor ebx, ebx
mov byte [ebp - 1], bl
jmp 0x8a83ac
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.008a69dd
xor ebx, ebx
mov dword [ebp - 0x248], 0x303
push ebx
push 5
lea ecx, [ebp - 0x2a0]
call fcn.008a6e48
test eax, eax
je 0x8a839e
lea ecx, [ebp - 0x2a0]
call fcn.008a6ff7
test eax, eax
je 0x8a839e
push ecx
lea ecx, [ebp - 0x54]
call fcn.008a6255
xor esi, esi
mov dword [ebp - 0x54], 0x4a7748
inc esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], ebx
call fcn.008a6321
push 0x5c
pop edi
push esi
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea ecx, [ebp - 0x38]
call fcn.00845a98
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x38]
push esi
inc eax
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00845a98
mov edi, eax
or esi, 0xffffffff
jmp 0x8a81a6
mov ecx, dword [ebp - 8]
mov eax, edi
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x38]
call fcn.0084a015
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.008a70ec
test eax, eax
je 0x8a8202
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x8a814e
mov ecx, dword [eax]
movzx eax, word [eax + 4]
jmp 0x8a8152
mov ecx, esi
mov eax, esi
push eax
push ecx
lea ecx, [ebp - 0x2a0]
call fcn.008a6e48
test eax, eax
je 0x8a8202
lea ecx, [ebp - 0x2a0]
call fcn.008a6ff7
test eax, eax
je 0x8a8202
push 1
lea eax, [edi + 1]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x5c
push eax
lea ecx, [ebp - 0x38]
call fcn.00845a98
push ebx
push 1
lea ecx, [ebp - 0x84]
mov edi, eax
call fcn.0084099c
cmp edi, esi
jne 0x8a80fa
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 8]
push esi
inc eax
mov dword [ebp - 0x5c], ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00840e0b
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push ecx
push eax
lea ecx, [ebp - 0x2a0]
call fcn.008a70ec
test eax, eax
je 0x8a82fd
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x8a8218
mov esi, dword [eax]
movzx eax, word [eax + 4]
jmp 0x8a821a
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0084099c
mov byte [ebp - 1], bl
jmp 0x8a830b
mov eax, esi
push eax
push esi
lea ecx, [ebp - 0x2a0]
call fcn.008a6e48
test eax, eax
je 0x8a82fd
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x248], 0x83
call fcn.008a6ff7
test eax, eax
je 0x8a82fd
push 0x100000
call fcn.008a8e29
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x14], eax
call fcn.008a71db
mov edi, eax
test edi, edi
je 0x8a8389
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 8]
mov esi, eax
cmp esi, 0x100000
jae 0x8a82dc
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
mov ecx, edi
movlpd qword [ebp - 0x20], xmm0
call dword [eax + 0xc]
test eax, eax
je 0x8a82fd
cmp dword [ebp - 0x18], esi
jne 0x8a82fd
push 0x4a78bc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.008b3919
add esp, 0xc
push dword [ebp - 8]
test eax, eax
jne 0x8a82f7
push 1
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.008afd0f
push dword [ebp - 8]
call fcn.008af4eb
add esp, 0x14
jmp 0x8a8389
push 0x4a78bc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.008b3919
add esp, 0xc
test eax, eax
je 0x8a8318
push dword [ebp - 8]
call fcn.008af4eb
pop ecx
mov byte [ebp - 1], bl
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.0084099c
lea ecx, [ebp - 0x54]
call fcn.008a660f
jmp 0x8a83a1
mov ecx, 0x100000
mov dword [ebp - 0xc], ebx
mov edx, ebx
mov dword [ebp - 0x10], ecx
jmp 0x8a837c
mov eax, edx
cdq
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x18]
push edx
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x8a82f4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jne 0x8a82f4
push dword [ebp - 8]
push 1
push eax
push dword [ebp - 0x14]
call fcn.008afd0f
mov edx, dword [ebp - 0xc]
mov ecx, 0x100000
sub esi, ecx
add edx, ecx
add esp, 0x10
mov dword [ebp - 0xc], edx
cmp esi, ecx
mov eax, esi
cmovge eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x10], eax
test esi, esi
jg 0x8a8327
push dword [ebp - 8]
call fcn.008af4eb
pop ecx
push 1
push dword [ebp - 0x14]
call fcn.008a92db
pop ecx
pop ecx
mov byte [ebp - 1], 1
jmp 0x8a8300
mov byte [ebp - 1], bl
lea ecx, [ebp - 0x2a0]
call fcn.008a6a58
lea ecx, [ebp - 0x100]
call fcn.008a7372
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0084099c
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret