Function at 0x10019990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100883a2
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x100c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov eax, dword [ebp + 8]
mov ecx, 0x100c75db
mov dword [ebp - 0x84], eax
call fcn.10085165
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
lea edi, [esi + 8]
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10019a22
mov eax, dword [edi]
test eax, eax
je 0x10019a22
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
cmp dword [esi + 4], 0
jne 0x10019a55
mov byte [ebp - 4], 3
test edi, edi
je 0x10019a48
mov eax, dword [edi]
test eax, eax
je 0x10019a41
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov byte [ebp - 0x79], 0
jmp 0x10019e67
mov ecx, dword [ebp - 0x14]
mov eax, 0xea0ea0eb
sub ecx, dword [ebp - 0x1c]
imul ecx
add edx, ecx
mov ecx, dword [esi + 4]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jbe 0x10019a8a
cmp ecx, 0x3a83a83
ja 0x10019ef5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1001b770
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
movlpd qword [ebp - 0x64], xmm0
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x33], 0
movq qword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x53], xmm0
movups xmmword [ebp - 0x43], xmm0
mov esi, dword [eax]
cmp esi, eax
je 0x10019bc7
mov edi, dword [ebp - 0x80]
nop dword [eax]
push 0x46
lea eax, [ebp - 0x78]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x78]
lea eax, [esi + 0x10]
push ecx
push eax
lea eax, [esi + 0x20]
push eax
call fcn.1001a2c0
test al, al
je 0x10019b80
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
je 0x10019b4f
movups xmm0, xmmword [ebp - 0x78]
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x18]
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [eax + 0x10], xmm0
mov eax, dword [ebp - 0x18]
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [eax + 0x20], xmm0
mov eax, dword [ebp - 0x18]
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [eax + 0x30], xmm0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0x34]
mov word [eax + 0x44], cx
add dword [ebp - 0x18], 0x46
jmp 0x10019b5c
lea ecx, [ebp - 0x78]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001cd20
mov byte [esi + 0x65], 2
mov eax, 0xea0ea0eb
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x186a0
jae 0x10019bc4
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10019ba6
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10019ba2
cmp esi, dword [eax + 8]
jne 0x10019ba2
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10019b92
mov esi, eax
jmp 0x10019bbc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10019bbc
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10019bb0
cmp esi, dword [edi]
jne 0x10019ae0
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 4
test edi, edi
je 0x10019be3
mov eax, dword [edi]
test eax, eax
je 0x10019bdc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jne 0x10019bf8
mov byte [ebp - 0x79], 0
jmp 0x10019e67
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 5
mov eax, 0xea0ea0eb
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
imul ecx
add edx, ecx
lea ecx, [ebp - 0x30]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x46
push ecx
add eax, 0x20
push eax
call fcn.1000fff0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movlpd qword [ebp - 0x24], xmm0
call fcn.1001f6f0
mov edi, dword [ebp - 0x80]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
movlpd qword [ebp - 0x9c], xmm0
mov eax, dword [edi + 0x28]
mov dword [ebp - 0xac], eax
mov eax, 0xea0ea0eb
imul ecx
mov dword [ebp - 0xb0], 0x8a4e2d1f
add edx, ecx
mov dword [ebp - 0x94], 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x20]
movups xmm0, xmmword [ebp - 0xb0]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x30]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0xa0]
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x18]
mov eax, 0xea0ea0eb
mov esi, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x46
push eax
mov eax, dword [ebp - 0x30]
add eax, 0x20
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x88], esi
mov byte [ebp - 4], 5
test ecx, ecx
je 0x10019db4
sub esi, ecx
mov eax, 0xea0ea0eb
imul esi
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul edx, eax, 0x46
cmp edx, 0x1000
jb 0x10019d8c
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x10019eaa
mov ecx, esi
push edx
push ecx
call fcn.1008270f
add esp, 8
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov esi, dword [ebp - 0x84]
add edi, 0x10
cmp esi, edi
je 0x10019dd6
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10019dcb
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.1000de70
push 0x14
push str.LocalLib.v1.3.2.data
mov ecx, esi
call fcn.1001bc30
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10019dee
mov eax, dword [esi]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x10019e02
mov eax, dword [esi]
push 0x1009f058
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ecx, eax
add esp, 8
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x10019e57
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
sub edi, eax
push ecx
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebp - 0x80]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
cmp esi, edi
je 0x10019eb0
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x14], 0x10
jb 0x10019e4d
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov byte [ebp - 0x79], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.1000fc20
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x10019ed5
mov ecx, dword [ebp - 0x14]
mov eax, 0xea0ea0eb
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x46
mov eax, esi
cmp ecx, 0x1000
jb 0x10019eb6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10019eb6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 0x79], 1
jmp 0x10019e5b
push ecx
push esi
call fcn.1008270f
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x79]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100826ce
mov esp, ebp
pop ebp
ret 4
call fcn.1001b5e0
int3