Function at 0x1008e5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097b00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100bb2a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x1008e634
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x100a57dd
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x1008e669
movzx esi, ax
mov ecx, esi
call fcn.10001cf0
test eax, eax
je 0x1008e678
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10007d68
jmp 0x1008e678
push 0
push 0x100a57dd
lea ecx, [ebp - 0x10]
call fcn.10008e96
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0x4c7a6f6d
mov dword [ebp - 0x18], 0x30347a
mov esi, dword [eax - 0xc]
lea eax, [esi + 1]
push eax
call fcn.1005a95d
mov edi, eax
add esp, 4
mov byte [edi + esi], 0
push dword [ebp + 8]
push 0x100a6b28
push edi
call fcn.100114b0
add esp, 0xc
mov ecx, esi
call fcn.10018940
add eax, 0xc
push eax
call fcn.1006442c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1008e6e4
test edi, edi
je 0x1008e79c
push edi
call fcn.1005a1ac
add esp, 4
xor bl, bl
jmp 0x1008e7dc
movq xmm0, qword [ebp - 0x1c]
mov edx, 8
movq qword [ebx], xmm0
xor ecx, ecx
mov eax, esi
shr eax, cl
add ecx, 8
mov byte [edx + ebx], al
inc edx
cmp edx, 0xc
jb 0x1008e6f4
push esi
add edx, ebx
mov ecx, edi
call fcn.10018e00
add esp, 4
test eax, eax
jne 0x1008e732
push ebx
call fcn.1005a1ac
add esp, 4
test edi, edi
je 0x1008e79c
push edi
call fcn.1005a1ac
add esp, 4
xor bl, bl
jmp 0x1008e7dc
add eax, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 0xc]
lea eax, [esi + 1]
push eax
call fcn.1005a95d
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [eax + esi], 0
mov esi, eax
push dword [ebp + 0xc]
push 0x100a6b28
push esi
call fcn.100114b0
add esp, 0xc
push 0x100aa1c0
push esi
call fcn.1006480a
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1008e7a0
push ebx
call fcn.1005a1ac
add esp, 4
test edi, edi
je 0x1008e78f
push edi
call fcn.1005a1ac
add esp, 4
test esi, esi
je 0x1008e79c
push esi
call fcn.1005a1ac
add esp, 4
xor bl, bl
jmp 0x1008e7dc
push eax
push dword [ebp - 0x18]
push 1
push ebx
call fcn.1006b45f
push dword [ebp - 0x14]
call fcn.100645f9
add esp, 0x14
push ebx
call fcn.1005a1ac
add esp, 4
test edi, edi
je 0x1008e7cd
push edi
call fcn.1005a1ac
add esp, 4
test esi, esi
je 0x1008e7da
push esi
call fcn.1005a1ac
add esp, 4
mov bl, 1
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1008e7fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1008e81b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1008e83a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8