Function at 0x1004ab60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1958
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1010b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
call fcn.1003bd50
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
call fcn.1003bd10
add esp, 8
test al, al
je 0x1004abbf
lea eax, [ebp + 8]
push eax
call fcn.1003bd30
add esp, 4
jmp 0x1004ada6
mov ecx, ebx
call fcn.1003df70
test eax, eax
je 0x1004abfd
mov ecx, ebx
call fcn.1003df00
mov ecx, ebx
mov esi, eax
call fcn.1003df70
cmp eax, esi
jae 0x1004abfd
mov ecx, ebx
call fcn.1003de50
mov esi, eax
lea eax, [ebp + 8]
push eax
call fcn.1003bcf0
mov byte [esi], al
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x1004ada6
cmp dword [ebx + 0x4c], 0
je 0x1004ac31
mov ecx, ebx
call fcn.1004b160
cmp dword [ebx + 0x38], 0
lea eax, [ebp + 8]
jne 0x1004ac38
push dword [ebx + 0x4c]
push eax
call fcn.1003bcf0
add esp, 4
movzx eax, al
push eax
call fcn.10048ee0
add esp, 8
test al, al
cmovne edi, dword [ebp + 8]
mov eax, edi
jmp 0x1004ada6
push eax
call fcn.1003bcf0
mov ecx, 0xf
mov byte [ebp - 0x34], al
add esp, 4
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
cmp edi, 0x10
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, esi
lea ecx, [ebp - 0x28]
cmovae ecx, esi
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x33]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.1003bd70
test eax, eax
js 0x1004ad54
cmp eax, 1
jg 0x1004ad30
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp edi, 0x10
mov ebx, dword [ebp - 0x38]
cmovae eax, esi
sub ebx, eax
je 0x1004acfa
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
cmp edi, 0x10
cmovae eax, esi
push dword [ecx + 0x4c]
push ebx
push 1
push eax
call fcn.1009ef77
mov edi, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [ebp - 0x28]
cmp ebx, eax
jne 0x1004ad5a
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x3c], eax
jne 0x1004ad2b
test ebx, ebx
mov ebx, dword [ebp - 0x30]
jne 0x1004ac80
cmp dword [ebp - 0x18], 0x20
jae 0x1004ad5a
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10011188
jmp 0x1004ac74
mov ebx, dword [ebp + 8]
jmp 0x1004ad5d
cmp eax, 3
jne 0x1004ad54
push dword [ebx + 0x4c]
push dword [ebp - 0x34]
call fcn.10048ee0
mov ebx, dword [ebp - 0x2c]
add esp, 8
mov edi, dword [ebp - 0x14]
test al, al
mov esi, dword [ebp - 0x28]
cmovne ebx, dword [ebp + 8]
jmp 0x1004ad5d
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
cmp edi, 0x10
jb 0x1004ada4
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x1004ad9b
test byte [ebp - 0x28], 0x1f
je 0x1004ad77
call fcn.10090951
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x1004ad83
call fcn.10090951
sub esi, eax
cmp esi, 4
jae 0x1004ad8f
call fcn.10090951
cmp esi, 0x23
jbe 0x1004ad99
call fcn.10090951
mov esi, eax
push esi
call fcn.1008a9f2
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a9f7
mov esp, ebp
pop ebp
ret 4