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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d23
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
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
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0043c440
add esp, 0xc
push ebx
push 0x23
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.tmpst
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov dword [ebp - 0x128], 0xc
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x118]
push edx
mov ecx, str.shst
call fcn.00401e30
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
cmp eax, ebx
je 0x4061df
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4061df
lea edi, [eax + eax]
mov eax, edi
call fcn.00440f80
mov esi, esp
cmp esi, ebx
je 0x4061df
mov eax, dword [ebp - 0x11c]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4061e1
xor eax, eax
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [ebp - 0x114]
push 0x458d70
push edx
call fcn.0043a133
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4062ba
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x406226
push edi
lea ecx, [ebp + 8]
push ecx
call fcn.0040e580
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call fcn.0043a2a1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0043a8ba
add esp, 0x18
cmp eax, ebx
jl 0x4062b0
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x4062b0
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
push esi
mov byte [eax + edx], bl
call fcn.0043a388
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406283
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 + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x406307
push 0x80070057
call fcn.00402060
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062df
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 + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0x138]
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