Function at 0x40c4f0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab79b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24c
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x238]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x254], esi
push 0x62a4d4
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.00401950
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00477660
mov ecx, dword [ebp - 0x228]
add esp, 0xc
test ecx, ecx
jne 0x40c6c4
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40c65f
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x23c], 0
movups xmmword [ebp - 0x250], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5d5
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00401950
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x40c637
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c62d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c7d7
push ecx
push edx
call fcn.0042dd9f
add esp, 8
movups xmm0, xmmword [ebp - 0x250]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [ebp - 0x240]
movq qword [ebp - 0x228], xmm0
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x40c6c4
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x62a4d4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00401950
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x40c7b6
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c7ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c7d7
jmp 0x40c7ac
mov eax, bind
sub eax, ecx
cmp eax, 1
jb 0x40c7dc
cmp dword [ebp - 0x224], 7
lea eax, [ebp - 0x238]
push 1
cmova eax, dword [ebp - 0x238]
push 0x62a88c
push ecx
push eax
push ecx
push dword [ebp - 0x254]
lea ecx, [ebp - 0x250]
call fcn.00401b30
push 0x62af8c
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00401a40
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x23c]
cmp ecx, 7
jbe 0x40c78a
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c780
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c7d7
push ecx
push edx
call fcn.0042dd9f
add esp, 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
jmp 0x40c681
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042db10
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0047a9c0
call fcn.00401210
int3