Function at 0x451f00
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x54ee5d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6fb4c0]
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], 0x6e80cc
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 0x452048
cmp edi, 0x104
jbe 0x451ffd
mov ecx, 2
mul ecx
cmovb eax, ebx
push eax
call fcn.00524d72
add esp, 4
mov dword [ebp - 0x14], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x451fef
push edi
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00420d90
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 0x451fd5
cmp eax, ebx
je 0x451ff2
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x451ff2
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
push edi
call fcn.00524d7b
add esp, 4
jmp 0x452048
mov edi, dword [ebp - 0x14]
push edi
call fcn.00524d7b
add esp, 4
jmp 0x452048
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00420d90
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 0x452039
cmp eax, 0xffffffff
je 0x452048
mov eax, dword [ebp - 0x14]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x452048
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 2
jl 0x4520d0
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x45205f
test ecx, ecx
jne 0x452065
cmp dword [eax + 0xc], 0x10
je 0x452077
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 0
inc eax
push eax
call fcn.0040ac30
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 1
jle 0x4520d0
mov ecx, dword [eax + 0xc]
cmp word [ecx + eax + 2], 0x3a
jne 0x4520d0
movzx ecx, word [eax + ecx]
call fcn.0040ccb0
movzx edi, ax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
cmp ecx, 1
je 0x4520a5
test ecx, ecx
jne 0x4520ab
cmp dword [eax + 0xc], 0x10
je 0x4520ba
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push 0
inc eax
push eax
call fcn.0040ac30
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0043b0d0
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0044c630
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4520fb
cmp eax, 0xffffffff
je 0x45210a
mov ecx, dword [ebp - 0x10]
lock xadd dword [ecx], ebx
dec ebx
setne cl
test cl, cl
jne 0x45210a
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
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.00524900
lea esp, [ebp + 0x20c]
pop ebp
ret