Function at 0x10001bf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004d95
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10007008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp + 8]
movq qword [ebp - 0x20], xmm0
call fcn.100012e0
mov byte [ebp - 4], 1
mov dl, 0x4c
mov byte [ebp - 0x5c], dl
xor ecx, ecx
mov dword [ebp - 0x58], 5
mov dword [ebp - 0x54], 0x20202862
mov byte [ebp - 0x50], dl
nop dword [eax + eax]
lea eax, [ebp - 0x54]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, dword [ebp - 0x58]
jae 0x10001c71
mov dl, byte [ebp - 0x5c]
jmp 0x10001c60
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
call fcn.10002c90
lea edi, [ebp - 0x54]
mov byte [ebp - 4], 2
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10001c86
mov edx, dword [ebp - 0x60]
sub edi, ecx
mov ecx, dword [ebp - 0x64]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x10001cc6
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x64], eax
lea esi, [ebp - 0x74]
cmovae esi, dword [ebp - 0x74]
lea eax, [ebp - 0x54]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x74]
jmp 0x10001cd6
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
push edi
call fcn.10003260
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 4], 4
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x10001d47
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001d3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001d3d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10003f01
add esp, 8
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmovae eax, dword [ebp - 0x38]
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call edi
push dword [ebp - 0x14]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov esi, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x10002fa0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
test esi, esi
jne 0x10001dcc
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0x10005204
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10001dcc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub ecx, edx
push esi
push ecx
push 1
push edx
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
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call edi
mov esi, eax
test esi, esi
je 0x10001e3b
mov dl, 0xe2
mov dword [ebp - 0x48], 8
mov byte [ebp - 0x4c], dl
xor ecx, ecx
mov dword [ebp - 0x44], 0x818d9092
mov dword [ebp - 0x40], 0xe2919187
nop dword [eax]
lea eax, [ebp - 0x44]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, dword [ebp - 0x48]
jae 0x10001e11
mov dl, byte [ebp - 0x4c]
jmp 0x10001e00
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.10002690
mov dword [eax], esi
lea eax, [ebp - 0x14]
push eax
call fcn.10002690
cmp dword [eax], 0
setne byte [ebp - 0x39]
jmp 0x10001e3f
mov byte [ebp - 0x39], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x10001e73
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001e69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ef0
push ecx
push edx
call fcn.10003f01
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
test ecx, ecx
je 0x10001eca
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10001eab
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001ef0
push edx
push ecx
call fcn.10003f01
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10001f00
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10001ef6
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001ef6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10003f01
add esp, 8
mov al, byte [ebp - 0x39]
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.10003ba4
mov esp, ebp
pop ebp
ret