Function at 0x464810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6f58
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ccc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
or esi, 0xffffffff
cmp dword [ebx], 0
jne 0x4649e8
cmp dword [ebx + 4], esi
jne 0x4649e8
lea edi, [ebx + 0x203c]
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464867
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x203a]
cmp ax, 0x5c
je 0x4648a3
cmp ax, 0x2f
je 0x4648a3
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x464890
mov eax, dword [0x4b11ac]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4648fa
mov ecx, dword [ebp + 8]
push edi
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
setne al
test al, al
jne 0x4648fa
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4648e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x2000000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x10], esp
mov esi, esp
push eax
call fcn.00421538
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 4
push ecx
mov ecx, dword [ebp + 0xc]
add eax, 0x10
push edx
mov edx, dword [ebp + 8]
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
push edi
push ecx
push edx
call fcn.004631b0
add esp, 0x1c
test eax, eax
jne 0x464971
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46495b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
call fcn.00463a20
or edx, 0xffffffff
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp + 0x1c]
jne 0x4649ba
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4649a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4649d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x464a07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x1000000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18