Function at 0x1004b070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1f68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1010c070]
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.1003c270
mov edi, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
call fcn.1003c230
add esp, 8
test al, al
je 0x1004b0cf
lea eax, [ebp + 8]
push eax
call fcn.1003c250
add esp, 4
jmp 0x1004b2b6
mov ecx, ebx
call fcn.1003e490
test eax, eax
je 0x1004b10d
mov ecx, ebx
call fcn.1003e420
mov ecx, ebx
mov esi, eax
call fcn.1003e490
cmp eax, esi
jae 0x1004b10d
mov ecx, ebx
call fcn.1003e370
mov esi, eax
lea eax, [ebp + 8]
push eax
call fcn.1003c210
mov byte [esi], al
add esp, 4
mov eax, dword [ebp + 8]
jmp 0x1004b2b6
cmp dword [ebx + 0x4c], 0
je 0x1004b141
mov ecx, ebx
call fcn.1004b670
cmp dword [ebx + 0x38], 0
lea eax, [ebp + 8]
jne 0x1004b148
push dword [ebx + 0x4c]
push eax
call fcn.1003c210
add esp, 4
movzx eax, al
push eax
call fcn.100493f0
add esp, 8
test al, al
cmovne edi, dword [ebp + 8]
mov eax, edi
jmp 0x1004b2b6
push eax
call fcn.1003c210
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.1003c290
test eax, eax
js 0x1004b264
cmp eax, 1
jg 0x1004b240
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 0x1004b20a
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.1009f48c
mov edi, dword [ebp - 0x14]
add esp, 0x10
mov esi, dword [ebp - 0x28]
cmp ebx, eax
jne 0x1004b26a
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x3c], eax
jne 0x1004b23b
test ebx, ebx
mov ebx, dword [ebp - 0x30]
jne 0x1004b190
cmp dword [ebp - 0x18], 0x20
jae 0x1004b26a
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.100111d8
jmp 0x1004b184
mov ebx, dword [ebp + 8]
jmp 0x1004b26d
cmp eax, 3
jne 0x1004b264
push dword [ebx + 0x4c]
push dword [ebp - 0x34]
call fcn.100493f0
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 0x1004b26d
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
cmp edi, 0x10
jb 0x1004b2b4
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x1004b2ab
test byte [ebp - 0x28], 0x1f
je 0x1004b287
call fcn.10090e61
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x1004b293
call fcn.10090e61
sub esi, eax
cmp esi, 4
jae 0x1004b29f
call fcn.10090e61
cmp esi, 0x23
jbe 0x1004b2a9
call fcn.10090e61
mov esi, eax
push esi
call fcn.1008aee5
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.1008aeea
mov esp, ebp
pop ebp
ret 4