Function at 0x40c020
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4bc
mov eax, dword [0x49e014]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
mov esi, dword [0x4a03a4]
mov bl, cl
mov byte [esp + 0xe], bl
push edi
test esi, esi
jne 0x40c064
push 2
push 0x208
call fcn.004643e4
mov esi, eax
add esp, 8
mov dword [0x4a03a4], esi
cmp word [esi], 0
jne 0x40c518
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [0x4a03a4]
cmp word [ecx], 0
je 0x40c0c3
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c090
sub edx, esi
sar edx, 1
cmp word [ecx + edx*2 - 2], 0x5c
je 0x40c0c3
lea edi, [ecx - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40c0b0
mov eax, dword [0x48f5cc]
mov dword [edi], eax
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c0d0
sub edx, esi
sar edx, 1
lea esi, [ecx + edx*2]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c0e5
sub ecx, edx
mov eax, 0x1f4
sar ecx, 1
sub eax, ecx
push eax
push esi
push 0xc0
push dword [0x4a0590]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c111
sub esi, ecx
sar esi, 1
cmp esi, 0x14
jb 0x40c3d1
mov edx, dword [0x4a03a4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c134
movups xmm0, xmmword [str..FusionApp]
sub ecx, esi
sar ecx, 1
lea ecx, [edx + ecx*2]
mov dword [esp + 0x14], ecx
movups xmmword [ecx], xmm0
mov eax, dword [0x48f604]
mov dword [ecx + 0x10], eax
mov ax, word [0x48f608]
mov word [ecx + 0x14], ax
test bl, bl
je 0x40c17e
push 0xffffffffffffffff
push dword [0x4a0798]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x4a03a4]
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40c406
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x4a03a4]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c1b0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 0x14]
push eax
call fcn.004643e4
mov edx, dword [0x4a03a4]
mov edi, eax
mov esi, edi
add esp, 8
sub esi, edx
nop dword [eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x40c1e0
mov ecx, edi
call fcn.0045c2d0
lea ecx, [edi - 2]
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40c200
mov eax, dword [str..lock]
push 0
push 0x80
push 2
push 0
mov dword [ecx], eax
mov eax, dword [0x48f610]
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x48f614]
push 0xc0000000
push edi
mov dword [ecx + 8], eax
call ebx
push edi
mov dword [0x49f254], eax
call fcn.004643fa
add esp, 4
cmp dword [0x49f254], 0xffffffff
jne 0x40c4f2
movups xmm0, xmmword [str..00.FusionApp]
mov ecx, dword [esp + 0x14]
xor bl, bl
mov byte [esp + 0x13], bl
mov dword [esp + 0x18], 0
movups xmmword [ecx], xmm0
movq xmm0, qword [0x48f628]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x48f630]
mov dword [ecx + 0x18], eax
xor eax, eax
test bl, bl
jne 0x40c400
xor ebx, ebx
add eax, 0x30
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov word [ecx + 2], ax
lea eax, [ebx + 0x30]
mov word [ecx + 4], ax
lea eax, [esp + 0x270]
push eax
push dword [0x4a03a4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40c396
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x4a03a4]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2e0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 0x14]
push eax
call fcn.004643e4
mov ecx, dword [0x4a03a4]
mov edi, eax
mov esi, edi
add esp, 8
sub esi, ecx
nop dword [eax]
movzx edx, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], dx
test dx, dx
jne 0x40c310
mov ecx, edi
call fcn.0045c2d0
lea ecx, [edi - 2]
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40c330
mov eax, dword [str..lock]
push 0
push 0x80
push 2
push 0
mov dword [ecx], eax
mov eax, dword [0x48f610]
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x48f614]
push 0xc0000000
push edi
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov dword [0x49f254], eax
call fcn.004643fa
add esp, 4
cmp dword [0x49f254], 0xffffffff
jne 0x40c396
inc ebx
cmp ebx, 0xa
jge 0x40c39e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
jmp 0x40c2a0
mov bl, 1
mov byte [esp + 0x13], bl
jmp 0x40c3a2
mov bl, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x18], edx
mov eax, edx
cmp edx, 0xa
jl 0x40c286
test bl, bl
jne 0x40c400
cmp byte [esp + 0x12], 0
je 0x40c3d1
push dword [0x4a0798]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x4a03a4]
call fcn.004643fa
add esp, 4
mov dword [0x4a03a4], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [0x49f254], 0xffffffff
jne 0x40c4f2
push dword [0x4a03a4]
call fcn.00465b3c
add esp, 4
test eax, eax
je 0x40c437
push dword [0x4a03a4]
call fcn.00465b47
add esp, 4
test eax, eax
jne 0x40c3be
mov esi, dword [0x4a03a4]
mov ecx, esi
call fcn.0045c2d0
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c447
sub esi, ecx
sar esi, 1
push 2
lea eax, [esi + 0x14]
push eax
call fcn.004643e4
mov edx, dword [0x4a03a4]
mov edi, eax
mov esi, edi
add esp, 8
sub esi, edx
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x40c470
lea ecx, [edi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40c483
mov eax, dword [str..lock]
push 0
push 0x80
push 2
push 0
mov dword [ecx], eax
mov eax, dword [0x48f610]
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x48f614]
push 0xc0000000
push edi
mov dword [ecx + 8], eax
call ebx
push edi
mov dword [0x49f254], eax
call fcn.004643fa
add esp, 4
cmp dword [0x49f254], 0xffffffff
jne 0x40c4ea
push dword [0x4a03a4]
call fcn.004643fa
add esp, 4
xor esi, esi
mov dword [0x4a03a4], esi
jmp 0x40c4ff
mov esi, dword [0x4a03a4]
jmp 0x40c4ff
mov esi, dword [0x4a03a4]
mov ecx, esi
call fcn.0045c2d0
cmp byte [esp + 0x12], 0
je 0x40c518
push dword [0x4a0798]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x4a03a4]
mov ecx, dword [esp + 0x4c4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460901
mov esp, ebp
pop ebp
ret