Function at 0x452140
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x54efed
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6f9540]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x214]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x6e6190
lea eax, [ebp]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
or ebx, 0xffffffff
test edi, edi
je 0x452288
cmp edi, 0x104
jbe 0x45223d
mov ecx, 2
mul ecx
cmovb eax, ebx
push eax
call fcn.00524f92
add esp, 4
mov dword [ebp - 0x14], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x45222f
push edi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00420fa0
mov ecx, dword [ebp - 0x10]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x452215
cmp eax, ebx
je 0x452232
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x452232
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
push edi
call fcn.00524f9b
add esp, 4
jmp 0x452288
mov edi, dword [ebp - 0x14]
push edi
call fcn.00524f9b
add esp, 4
jmp 0x452288
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00420fa0
mov ecx, dword [ebp - 0x10]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x452279
cmp eax, 0xffffffff
je 0x452288
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x452288
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403d20
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 2
jl 0x452310
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x45229f
test ecx, ecx
jne 0x4522a5
cmp dword [eax + 0xc], 0x10
je 0x4522b7
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 0
inc eax
push eax
call fcn.0040b2c0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 1
jle 0x452310
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x452310
movzx ecx, word [eax + ecx]
call fcn.0040d340
movzx edi, ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x4522e5
test ecx, ecx
jne 0x4522eb
cmp dword [eax + 0xc], 0x10
je 0x4522fa
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 0
inc eax
push eax
call fcn.0040b2c0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0043b1b0
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0044c860
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x45233b
cmp eax, 0xffffffff
je 0x45234a
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], ebx
dec ebx
setne cl
test cl, cl
jne 0x45234a
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403d20
add esp, 0xc
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 + 0x208]
xor ecx, ebp
call fcn.00524b20
lea esp, [ebp + 0x20c]
pop ebp
ret