Function at 0x1001a0a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088451
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100c4014]
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 edi, ecx
mov ecx, 0x100c75db
call fcn.10085165
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea esi, [edi + 8]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1001a0fc
mov eax, dword [esi]
test eax, eax
je 0x1001a0fc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov ecx, dword [edi]
mov bl, byte [ebp + 8]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001a16b
mov edx, 4
cmp byte [eax + 0x65], 2
jne 0x1001a126
test bl, bl
mov ecx, 1
cmovne ecx, edx
mov byte [eax + 0x65], cl
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x1001a14c
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x1001a148
cmp eax, dword [ecx + 8]
jne 0x1001a148
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x1001a138
mov eax, ecx
jmp 0x1001a167
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x1001a162
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x1001a156
mov edx, 4
cmp eax, dword [edi]
jne 0x1001a113
mov dword [ebp - 4], 2
test esi, esi
je 0x1001a18a
mov eax, dword [esi]
test eax, eax
je 0x1001a183
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov byte [edi + 0xc], 1
call fcn.10018f20
test bl, bl
je 0x1001a299
mov eax, dword [edi + 0x28]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x4c], 0x8a4e2d1f
mov dword [ebp - 0x48], eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.10018030
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2c]
push 0x14
push str.LocalLib.v1.3.0.data
call fcn.1001bc30
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x1009f058
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1001a23c
push esi
push 1
lea eax, [ebp - 0x4c]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1001a279
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a26f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001a26f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1008270f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
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.100826ce
mov esp, ebp
pop ebp
ret 4