Function at 0x1004b6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
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
cmp dword [ebx + 0x38], 0
je 0x1004b8d7
cmp byte [ebx + 0x3d], 0
je 0x1004b8d7
call fcn.1003c270
mov edx, dword [ebx]
mov esi, eax
push esi
mov ecx, ebx
call dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], esi
push eax
call fcn.1003c230
add esp, 8
test al, al
je 0x1004b741
xor al, al
jmp 0x1004b8d9
mov ecx, 0xf
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 - 0x14]
mov eax, dword [ebp - 0x28]
cmp esi, 0x10
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, eax
cmovae edx, eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
lea eax, [ebx + 0x40]
push eax
call fcn.1004ba80
sub eax, 0
je 0x1004b7bd
sub eax, 1
je 0x1004b7c1
mov esi, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x1004b889
xor bl, bl
jmp 0x1004b88b
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x34]
cmovae ecx, eax
sub edi, ecx
je 0x1004b7f9
push dword [ebx + 0x4c]
cmp esi, 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, eax
push 1
push ecx
call fcn.1009f48c
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
mov eax, dword [ebp - 0x28]
jne 0x1004b7b6
cmp byte [ebx + 0x3d], 0
je 0x1004b889
test edi, edi
jne 0x1004b777
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, 8
jbe 0x1004b87f
lea edi, [edx + 8]
cmp edi, 0xfffffffe
ja 0x1004b87f
cmp esi, edi
jae 0x1004b867
push edx
push edi
lea ecx, [ebp - 0x28]
call fcn.10005ca5
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test edi, edi
je 0x1004b777
cmp esi, 0x10
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
cmovae ecx, eax
mov eax, dword [ebp - 0x18]
movq qword [ecx + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + edi], 0
jmp 0x1004b771
test edi, edi
jne 0x1004b83c
cmp esi, 0x10
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x28]
cmovae ecx, eax
mov byte [ecx], 0
jmp 0x1004b771
push str.string_too_long
call fcn.100895c8
mov bl, 1
cmp esi, 0x10
jb 0x1004b8d3
lea ecx, [esi + 1]
cmp ecx, 0x1000
jb 0x1004b8ca
test byte [ebp - 0x28], 0x1f
je 0x1004b8a6
call fcn.10090e61
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x1004b8b2
call fcn.10090e61
sub eax, ecx
cmp eax, 4
jae 0x1004b8be
call fcn.10090e61
cmp eax, 0x23
jbe 0x1004b8c8
call fcn.10090e61
mov eax, ecx
push eax
call fcn.1008aee5
add esp, 4
mov al, bl
jmp 0x1004b8d9
mov al, 1
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