Function at 0x1000c270
Capabilities:
Create directory
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037877
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
or ebx, 0xffffffff
cmp byte [0x1007df30], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], edi
jne 0x1000c821
xorps xmm0, xmm0
mov dword [ebp - 0x244], 0
movq qword [ebp - 0x24c], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0
sub esp, 8
lea ecx, [ebp - 0x24c]
call fcn.1000dc90
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
movq qword [ebp - 0x240], xmm0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 1
sub esp, 8
lea ecx, [ebp - 0x240]
call fcn.1000dc90
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movq qword [ebp - 0x234], xmm0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 2
sub esp, 8
lea ecx, [ebp - 0x234]
call fcn.1000dc90
xorps xmm0, xmm0
mov dword [ebp - 0x250], 0
movq qword [ebp - 0x258], xmm0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 3
sub esp, 8
lea ecx, [ebp - 0x258]
call fcn.1000dc90
mov eax, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x248]
sub edi, eax
sar edi, 1
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x23c]
add esp, 0xc
mov ebx, dword [ebp - 0x240]
sub eax, ebx
sar eax, 1
mov dword [ebp - 0x220], eax
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov esi, dword [ebp - 0x230]
sub esi, eax
sar esi, 1
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
mov edi, dword [ebp - 0x24c]
push edi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push esi
push dword [ebp - 0x234]
push dword [ebp - 0x220]
push ebx
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
push ebx
mov ebx, dword [ebp - 0x258]
push str._sLog
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x224], 0
call fcn.100011b0
test eax, eax
je 0x1000ca44
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x224]
mov esi, dword [ebp - 0x240]
push esi
push str._sLog_temp.log
push eax
call fcn.1000d770
mov edi, dword [ebp - 0x224]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1000c51a
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push str._sRazerSynapse3Log
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x1000c528
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x220]
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x234]
push esi
push str._s_s.log
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push ebx
push 0
call fcn.1000ca50
mov dword [ebp - 0x220], 0
call fcn.100011b0
test eax, eax
je 0x1000ca44
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x220]
push dword [ebp - 0x234]
push str.SOFTWARERAZERSynapse3_S
push eax
call fcn.1000d790
mov esi, dword [ebp - 0x220]
xorps xmm0, xmm0
add esp, 0xc
movq qword [ebp - 0x268], xmm0
mov dword [ebp - 0x260], 0
cmp dword [esi - 4], 1
jle 0x1000c5d0
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.1000d630
mov esi, dword [ebp - 0x220]
push esi
lea ecx, [ebp - 0x268]
call fcn.1000fdf0
mov byte [ebp - 4], 8
mov eax, dword [0x1007df2c]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x228], 4
push eax
push ecx
lea ecx, [ebp - 0x268]
call fcn.1000ff80
mov eax, dword [ebp - 0x25c]
mov dword [0x1007df2c], eax
mov byte [ebp - 4], 7
mov dword [ebp - method.CRegistry.virtual_0], vtable.CRegistry.0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x260]
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x260]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c65a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c678
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c693
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x1000c6ee
mov eax, dword [ebp - 0x250]
sub eax, ebx
sar eax, 1
lea ecx, [eax + eax]
mov eax, ebx
cmp ecx, 0x1000
jb 0x1000c6c6
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c7e4
push ecx
push ebx
call fcn.10034f82
add esp, 8
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x1000c74f
mov eax, dword [ebp - 0x22c]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000c727
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c7e4
push edx
push ecx
call fcn.10034f82
add esp, 8
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x240]
test ecx, ecx
je 0x1000c7ac
mov eax, dword [ebp - 0x238]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000c784
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c7e4
push edx
push ecx
call fcn.10034f82
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x1000c812
mov eax, dword [ebp - 0x244]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000c7ea
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000c7ea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10034f82
add esp, 8
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov esi, dword [ebp - 0x270]
or ebx, 0xffffffff
mov edi, dword [ebp - 0x26c]
mov eax, dword [ebp + 8]
cmp eax, dword [0x1007df2c]
jg 0x1000ca26
cmp byte [0x1007df31], 0
je 0x1000ca26
call fcn.1000ced0
push 0x1007def8
mov dword [ebp - 0x274], 0x1007def8
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1000c865
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x224], 0
call fcn.100011b0
test eax, eax
je 0x1000ca44
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x224]
push eax
call fcn.1000bf20
mov dword [ebp - 0x220], 0
call fcn.100011b0
test eax, eax
je 0x1000ca44
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x220]
push edi
push esi
call fcn.1000d4d0
lea eax, [ebp - 0x220]
push eax
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x26c]
call fcn.1000d330
add esp, 4
mov byte [ebp - 4], 0x12
mov edx, dword [eax]
mov esi, dword [ebp - 0x220]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x1000c959
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x1000c94a
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1000c94a
call fcn.1000d6e0
mov dword [ebp - 0x228], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x1000c93f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x228]
add eax, 0x10
mov dword [ebp - 0x220], eax
jmp 0x1000c959
push dword [edx - 0xc]
lea ecx, [ebp - 0x220]
push edx
call fcn.100069c0
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c97a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
push eax
call fcn.1000c0e0
mov ecx, dword [0x1007def4]
mov esi, dword [ebp - 0x220]
cmp ecx, 0xffffffff
je 0x1000c9d7
mov dword [ebp - 0x228], 0
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
lea edi, [eax + eax]
jle 0x1000c9c5
push eax
lea ecx, [ebp - 0x220]
call fcn.10006bf0
mov esi, dword [ebp - 0x220]
mov ecx, dword [0x1007def4]
push 0
lea eax, [ebp - 0x228]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0xf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c9f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000ca11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push 0x1007def8
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034b1d
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10008700
int3