Function at 0x100617d0
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079700
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x100a900c]
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 - 0x118], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xf4], 0
cmp dword [0x100b0470], 8
mov dword [ebp - 0x11c], eax
mov eax, 0x100b045c
cmovae eax, dword [0x100b045c]
push eax
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xf0], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10061875
cmp dword [0x100b0470], 8
mov eax, 0x100b045c
push 0
cmovae eax, dword [0x100b045c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10061875
xor al, al
jmp 0x10061d3a
mov ecx, dword [0x100b046c]
mov eax, 0x7ffffffe
mov edx, dword [esi + 0x10]
sub eax, ecx
cmp eax, edx
jb 0x10061d55
cmp dword [0x100b0470], 8
mov eax, 0x100b045c
cmovae eax, dword [0x100b045c]
cmp dword [esi + 0x14], 8
jb 0x100618a8
mov esi, dword [esi]
push edx
push esi
push ecx
push eax
push ecx
push dword [ebp - 0xf8]
lea ecx, [ebp - 0x48]
call fcn.10027840
mov eax, 2
mov dword [ebp - 0xec], eax
push 0
push 0
push 1
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 0
cmovae eax, dword [ebp - 0x48]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xf8], eax
cmp eax, 0xffffffff
jne 0x10061905
mov byte [ebp - 0xe1], 0
jmp 0x10061d2c
push 0x98
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.10061400
mov edx, str.patch.aul__r43_ss_36__debug_info_file_r_n_r_n
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.10022f90
push dword [ebp - 0xe8]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
call fcn.10029990
add esp, 4
lea ecx, [ebp - 0xe0]
mov edx, 0x1009f2a0
call fcn.10022f90
mov edx, str.modules_r_n
lea ecx, [ebp - 0xe0]
call fcn.10022f90
mov esi, dword [ebp - 0xf0]
mov eax, 0x78787879
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x114], edi
mov esi, dword [esi]
sub ecx, esi
imul ecx
mov dword [ebp - 0xe8], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10061b26
cmp esi, edi
je 0x10061b36
lea edi, [esi + 0x40]
nop
cmp byte [edi], 0
je 0x10061add
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0xec]
xorps xmm0, xmm0
or eax, 4
mov dword [ebp - 0x100], 0
movups xmmword [ebp - 0x110], xmm0
push 0x40
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xf4], eax
call fcn.10020ca0
lea eax, [edi - 0x20]
lea ecx, [edi - 0x20]
mov dword [ebp - 0xf0], ecx
cmp eax, edi
je 0x10061a60
movzx esi, byte [ecx]
lea ecx, [ebp - 0x110]
mov eax, esi
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEF]
push eax
push 1
call fcn.10020da0
and esi, 0xf
lea ecx, [ebp - 0x110]
movzx eax, byte [esi + str.0123456789ABCDEF]
push eax
push 1
call fcn.10020da0
mov ecx, dword [ebp - 0xf0]
inc ecx
mov dword [ebp - 0xf0], ecx
cmp ecx, edi
jne 0x10061a14
mov esi, dword [ebp - 0xe8]
lea eax, [ebp - 0x110]
push eax
lea eax, [edi - 0x38]
push eax
lea eax, [edi - 0x3c]
push eax
push esi
sub esp, 8
lea edx, [ebp - 0xe0]
mov eax, esp
lea ecx, [ebp - 0x124]
mov dword [eax], str.:08x_:08x:____r_n
mov dword [eax + 4], 0x17
call fcn.10061d60
and dword [ebp - 0xec], 0xfffffffb
add esp, 0x18
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xfc]
cmp ecx, 0x10
jb 0x10061b0c
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061ad1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061baa
push ecx
push edx
call fcn.1007516e
add esp, 8
jmp 0x10061b0c
lea eax, [edi - 0x38]
push eax
lea eax, [edi - 0x3c]
push eax
push esi
sub esp, 8
lea edx, [ebp - 0xe0]
mov eax, esp
lea ecx, [ebp - 0x12c]
mov dword [eax], str.:08x_:08x:_r_n
mov dword [eax + 4], 0x12
call fcn.10061e10
add esp, 0x14
add esi, 0x44
add edi, 0x44
mov dword [ebp - 0xe8], esi
cmp esi, dword [ebp - 0x114]
jne 0x100619b0
jmp 0x10061b36
mov edx, str._Failed_to_get_modules_info__r_n
lea ecx, [ebp - 0xe0]
call fcn.10022f90
mov edx, 0x1009f2a0
lea ecx, [ebp - 0xe0]
call fcn.10022f90
mov esi, dword [ebp - 0x118]
lea ecx, [ebp - 0x110]
mov edx, dword [esi + 4]
call fcn.1005f530
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10061b69
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0xe0]
call fcn.10029990
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0xfc]
cmp ecx, 0x10
jb 0x10061bba
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061bb0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061bb0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007516e
add esp, 8
mov edx, 0x1009f2a0
lea ecx, [ebp - 0xe0]
call fcn.10022f90
mov eax, dword [esi + 4]
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x110]
mov edx, dword [eax + 0xc4]
add edx, 0xffffff80
call fcn.10060460
add esp, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10061bfa
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0xe0]
call fcn.10029990
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0xfc]
cmp ecx, 0x10
jb 0x10061c4b
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061c41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061c41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007516e
add esp, 8
mov edx, 0x1009f2a0
lea ecx, [ebp - 0xe0]
call fcn.10022f90
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10021300
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0xf8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push ecx
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 0xe1], 1
cmp ecx, 0x10
jb 0x10061cd0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061cc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061cc6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007516e
add esp, 8
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.100205b0
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x48]
call fcn.10021440
mov al, byte [ebp - 0xe1]
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.1007491a
mov esp, ebp
pop ebp
ret
call fcn.10001a00
int3