Function at 0x4603e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a512
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
mov eax, dword [0x48948c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x860], ecx
mov dword [ebp - 4], 0
push 0x47cdf8
lea ecx, [ebp - 0x1c]
call fcn.0040d9a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004126c0
mov byte [ebp - 4], 2
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.00411230
cmp eax, 0xffffffff
jne 0x4604fe
lea eax, [ebp - 0x81c]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x81c]
push ecx
lea ecx, [ebp - 0x838]
call fcn.0040c520
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x838]
call fcn.0041c300
sub eax, 1
push eax
lea ecx, [ebp - 0x838]
call fcn.00411200
movzx edx, word [eax]
cmp edx, 0x5c
je 0x4604a1
push 0x5c
lea ecx, [ebp - 0x838]
call fcn.004111e0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x854]
push edx
call fcn.00405470
add esp, 0xc
mov dword [ebp - 0x864], eax
mov eax, dword [ebp - 0x864]
mov dword [ebp - 0x868], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x868]
push ecx
lea ecx, [ebp + 8]
call fcn.0040b760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x854]
call fcn.0040d020
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
call fcn.0040d020
lea ecx, [ebp + 8]
call fcn.00401fd0
push eax
lea ecx, [ebp - 0x14]
call fcn.00412610
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.004125e0
push eax
mov edx, dword [ebp - 0x860]
mov eax, dword [edx + 0x230]
mov ecx, dword [ebp - 0x860]
mov edx, dword [ecx + 0x230]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x58]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x460583
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x858], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040db50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040db50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d020
mov eax, dword [ebp - 0x858]
jmp 0x460668
mov eax, dword [ebp - 0x860]
movzx ecx, byte [eax + 0x2c9]
test ecx, ecx
je 0x4605c0
lea ecx, [ebp - 0x1c]
call fcn.004125e0
push eax
mov edx, dword [ebp - 0x860]
mov eax, dword [edx + 0x230]
mov ecx, dword [ebp - 0x860]
mov edx, dword [ecx + 0x230]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x18c]
call ecx
mov edx, dword [ebp - 0x860]
movzx eax, byte [edx + 0x2ca]
test eax, eax
je 0x4605fd
lea ecx, [ebp - 0x1c]
call fcn.004125e0
push eax
mov ecx, dword [ebp - 0x860]
mov edx, dword [ecx + 0x230]
mov eax, dword [ebp - 0x860]
mov ecx, dword [eax + 0x230]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x184]
call eax
mov ecx, dword [ebp - 0x860]
mov ecx, dword [ecx + 0x230]
call fcn.004125a0
mov edx, dword [ebp - 0x860]
mov eax, dword [edx + 0x230]
mov ecx, dword [ebp - 0x860]
mov edx, dword [ecx + 0x230]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x17c]
call ecx
mov dword [ebp - 0x85c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040db50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040db50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d020
mov eax, dword [ebp - 0x85c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314f7
mov esp, ebp
pop ebp
ret 0x1c