Function at 0x45a740
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x549e82
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x8870bc]
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 - 0x28], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x6f6ba0
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 0x45a89b
push 0x104
lea eax, [ebp]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x45a7f5
cmp eax, 0x104
jae 0x45a7f5
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00457730
add esp, 0xc
mov edi, eax
lea edx, [ebx + 4]
jmp 0x45a810
push edi
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00457730
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 0x45a859
mov eax, dword [ebp - 0x18]
and edx, 0xfffffffb
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45a847
cmp eax, 0xffffffff
je 0x45a856
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x45a856
push 4
push 2
push dword [ebp - 0x18]
call fcn.004016c0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
test dl, 2
je 0x45a89b
mov eax, dword [ebp - 0x14]
and edx, 0xfffffffd
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45a88c
cmp eax, 0xffffffff
je 0x45a89b
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x45a89b
push 4
push 2
push dword [ebp - 0x14]
call fcn.004016c0
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x45a90b
mov edi, 0x5c
push 1
push ecx
mov eax, esp
mov ecx, esi
mov word [eax], di
call fcn.004061f0
test al, al
je 0x45a8c6
push 1
mov ecx, esi
call fcn.00405750
jmp 0x45a8a8
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00447090
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 - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x45a8fc
cmp eax, 0xffffffff
je 0x45a90b
mov eax, dword [ebp - 0x1c]
lock xadd dword [eax], ebx
cmp ebx, 1
setne al
test al, al
jne 0x45a90b
push 4
push 2
push dword [ebp - 0x1c]
call fcn.004016c0
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x45a924
push str.C:_tmp
push 6
mov ecx, esi
call fcn.00403500
jmp 0x45a9a3
cmp eax, 2
jl 0x45a9a3
mov eax, dword [ecx]
cmp eax, 1
je 0x45a934
test eax, eax
jne 0x45a93c
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x45a94c
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.00408ba0
mov eax, dword [esi]
cmp dword [eax + 4], 1
jle 0x45a9a3
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x45a9a3
movzx ecx, word [ecx + eax]
call fcn.0040b2e0
movzx edi, ax
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 1
je 0x45a978
test eax, eax
jne 0x45a980
mov eax, dword [esi]
cmp dword [eax + 0xc], 0x10
je 0x45a990
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
inc eax
push eax
call fcn.00408ba0
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
call fcn.00437d90
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.00520afb
lea esp, [ebp + 0x414]
pop ebp
ret