Function at 0x415bc0
Capabilities:
Create directory
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4518e7
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x4650c0]
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 esi, ecx
lea ecx, [ebp - 0x1b0]
call fcn.00418490
lea eax, [ebp - 0x1ac]
push eax
mov ecx, 0x4589e4
mov dword [ebp - 4], 0
call fcn.00401e30
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
push ecx
push edx
push str._I64d
lea edi, [ebp - 0x1ac]
call fcn.00410840
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
mov ebx, edi
call fcn.004019a0
push 0x103
xor edi, edi
lea eax, [ebp - 0x19f]
push edi
push eax
mov byte [ebp - 0x1a0], 0
call fcn.0043c440
add esp, 0xc
push edi
push 0x23
lea ecx, [ebp - 0x1a0]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.SQ_PlatForm
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
mov dword [ebp - 0x1c0], 0xc
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1b8], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x1ac]
mov ebx, eax
cmp eax, edi
je 0x415d01
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x415d01
add eax, eax
mov dword [ebp - 0x1a8], eax
call fcn.00440f80
mov edi, esp
test edi, edi
je 0x415d01
mov edx, dword [ebp - 0x1a8]
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x415d03
xor eax, eax
push eax
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x1a0]
push 0x458d74
push ecx
call fcn.0043a133
mov edi, eax
add esp, 8
test edi, edi
je 0x415f7e
push 0x80
lea edx, [ebp - 0x97]
push 0
push edx
mov byte [ebp - 0x98], 0
call fcn.0043c440
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
mov ecx, 0x4589e4
call fcn.00401e30
lea ecx, [ebp - 0x1a8]
push ecx
mov bl, 2
mov ecx, 0x4589e4
mov byte [ebp - 4], bl
call fcn.00401e30
push edi
push 0x80
lea edx, [ebp - 0x98]
push 1
push edx
mov byte [ebp - 4], 3
call fcn.0043a646
add esp, 0x10
test eax, eax
je 0x415dd5
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x98]
call fcn.004016f0
push 0x81
lea ecx, [ebp - 0x98]
push 0
push ecx
call fcn.0043c440
add esp, 0xc
push edi
push 0x80
lea edx, [ebp - 0x98]
push 1
push edx
call fcn.0043a646
add esp, 0x10
test eax, eax
jne 0x415d92
push edi
call fcn.0043a388
mov eax, dword [ebp - 0x1a4]
add esp, 4
mov ecx, 0x458ffc
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415e16
test dx, dx
je 0x415e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x415df0
xor eax, eax
jmp 0x415e1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
or edx, 0xffffffff
mov byte [ebp - 4], bl
test al, al
mov eax, dword [ebp - 0x1a8]
je 0x415ecc
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1b0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ec2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x415f5c
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ee5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1b0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x1d0]
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.004397ee
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1a4], 0
call fcn.0043a056
cdq
mov ecx, 0x3e8
idiv ecx
lea eax, [edx + 1]
cmp eax, dword [esi + 0x54]
jge 0x415fa7
mov dword [ebp - 0x1a4], 1
lea edx, [ebp - 0x1a0]
push 0x458d70
push edx
call fcn.0043a133
add esp, 8
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x416082
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1a4]
push eax
push 0x45a1f0
lea edi, [ebp - 0x1a8]
call fcn.00410840
mov ebx, dword [ebp - 0x1a8]
add esp, 8
test ebx, ebx
jne 0x41600d
xor eax, eax
jmp 0x41603a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x416020
xor eax, eax
jmp 0x41603a
lea edi, [eax + eax]
mov eax, edi
call fcn.00440f80
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00413830
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416040
sub ecx, esi
mov esi, dword [ebp - 0x1b4]
push esi
push ecx
push 1
push eax
call fcn.0043a2a1
push esi
call fcn.0043a388
lea eax, [ebx - 0x10]
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416082
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x1a4], 1
jne 0x415f0b
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4160b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1b0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415ec2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x415f5c