Function at 0x456320
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x54f787
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6f9540]
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], 0x6e6190
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 0x456477
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4563d5
cmp eax, 0x104
jae 0x4563d5
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00420fa0
add esp, 0xc
mov edi, eax
lea edx, [ebx + 4]
jmp 0x4563f0
push edi
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00420fa0
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 0x456437
mov eax, dword [ebp - 0x18]
and edx, 0xfffffffb
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x456425
cmp eax, 0xffffffff
je 0x456434
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x456434
push 4
push 2
push dword [ebp - 0x18]
call fcn.00403d20
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
test dl, 2
je 0x456477
mov eax, dword [ebp - 0x14]
and edx, 0xfffffffd
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x456468
cmp eax, 0xffffffff
je 0x456477
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x456477
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4564e5
mov edi, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], di
call fcn.004089b0
test al, al
je 0x4564a2
push 1
mov ecx, esi
call fcn.004081c0
jmp 0x456484
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00424630
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 0x4564d6
cmp eax, 0xffffffff
je 0x4564e5
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], ebx
dec ebx
setne al
test al, al
jne 0x4564e5
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x4564fe
push str.C:_tmp
push 6
mov ecx, esi
call fcn.00405f50
jmp 0x45657d
cmp eax, 2
jl 0x45657d
mov eax, dword [ecx]
cmp eax, 1
je 0x45650e
test eax, eax
jne 0x456516
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x456526
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.0040b2c0
mov ecx, dword [esi]
cmp dword [ecx + 4], 1
jle 0x45657d
mov eax, dword [ecx + 0xc]
cmp word [eax + ecx + 2], 0x3a
jne 0x45657d
movzx ecx, word [eax + ecx]
call fcn.0040d340
movzx edi, ax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x456552
test eax, eax
jne 0x45655a
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x45656a
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.0040b2c0
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
call fcn.0043b1b0
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.00524b20
lea esp, [ebp + 0x414]
pop ebp
ret