Function at 0x462b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ffa8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c3c64]
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 0x462d38
cmp dword [ebx + 4], esi
jne 0x462d38
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 0x462bb7
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x203a]
cmp ax, 0x5c
je 0x462bf3
cmp ax, 0x2f
je 0x462bf3
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x462be0
mov eax, dword [0x4aa0a4]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x462c4a
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 0x462c4a
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 0x462c32
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.0042152d
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.00461500
add esp, 0x1c
test eax, eax
jne 0x462cc1
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 0x462cab
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.00461d70
or edx, 0xffffffff
mov dword [ebx], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp + 0x1c]
jne 0x462d0a
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462cf2
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 0x462d23
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 0x462d57
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