Function at 0x4560e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x54f5f7
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6fb4c0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x6e80cc
lea eax, [ebp + 0x208]
mov dword [ebp - 4], 0
push eax
push 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
or ebx, 0xffffffff
test edi, edi
je 0x456237
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x456195
cmp eax, 0x104
jae 0x456195
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00420d90
add esp, 0xc
mov edi, eax
lea edx, [ebx + 4]
jmp 0x4561b0
push edi
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420d90
add esp, 0xc
mov edi, eax
mov edx, 5
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [esi], eax
mov dword [ebp - 0x10], edx
mov dword [edi], ecx
test dl, 4
je 0x4561f7
mov eax, dword [ebp - 0x18]
and edx, 0xfffffffb
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4561e5
cmp eax, 0xffffffff
je 0x4561f4
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4561f4
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403690
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
test dl, 2
je 0x456237
mov eax, dword [ebp - 0x14]
and edx, 0xfffffffd
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x456228
cmp eax, 0xffffffff
je 0x456237
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x456237
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4562a5
mov edi, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], di
call fcn.00408320
test al, al
je 0x456262
push 1
mov ecx, esi
call fcn.00407b30
jmp 0x456244
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00424650
mov ecx, dword [esi]
mov edx, eax
add esp, 8
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x456296
cmp eax, 0xffffffff
je 0x4562a5
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4562a5
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4562be
push str.C:_tmp
push 6
mov ecx, esi
call fcn.004058c0
jmp 0x45633d
cmp eax, 2
jl 0x45633d
mov eax, dword [ecx]
cmp eax, 1
je 0x4562ce
test eax, eax
jne 0x4562d6
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x4562e6
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.0040ac30
mov ecx, dword [esi]
cmp dword [ecx + 4], 1
jle 0x45633d
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 2], 0x3a
jne 0x45633d
movzx ecx, word [eax + ecx]
call fcn.0040ccb0
movzx edi, ax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x456312
test eax, eax
jne 0x45631a
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x45632a
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.0040ac30
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
call fcn.0043b0d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00524900
lea esp, [ebp + 0x414]
pop ebp
ret