Function at 0x4562f0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x549808
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x8870bc]
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], 0x6f6ba0
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 0x456446
cmp edi, 0x104
jbe 0x4563f9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00521324
add esp, 4
mov dword [ebp - 0x14], eax
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4563eb
push edi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00457730
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 - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x4563d1
cmp eax, ebx
je 0x4563ee
mov eax, dword [ebp - 0x18]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x4563ee
push 4
push 2
push dword [ebp - 0x18]
call fcn.004016c0
add esp, 0xc
push edi
call fcn.0052132d
add esp, 4
jmp 0x456446
mov edi, dword [ebp - 0x14]
push edi
call fcn.0052132d
add esp, 4
jmp 0x456446
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00457730
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 0x456437
cmp eax, 0xffffffff
je 0x456446
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x456446
push 4
push 2
push dword [ebp - 0x14]
call fcn.004016c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 2
jl 0x4564ce
mov eax, dword [ecx]
cmp eax, 1
je 0x45645a
test eax, eax
jne 0x456463
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0x10
je 0x456475
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x10]
push 0
inc eax
push eax
call fcn.00408ba0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 1
jle 0x4564ce
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x4564ce
movzx ecx, word [ecx + eax]
call fcn.0040b2e0
movzx edi, ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x4564a3
test ecx, ecx
jne 0x4564a9
cmp dword [eax + 0xc], 0x10
je 0x4564b8
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 0
inc eax
push eax
call fcn.00408ba0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
call fcn.00437d90
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00453ce0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4564fb
cmp eax, 0xffffffff
je 0x45650a
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], ebx
cmp ebx, 1
setne cl
test cl, cl
jne 0x45650a
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
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.00520afb
lea esp, [ebp + 0x20c]
pop ebp
ret