Function at 0x45fde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a0b2
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 0x47ce78
lea ecx, [ebp - 0x1c]
call fcn.0040dcd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040b160
mov byte [ebp - 4], 2
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.004118e0
cmp eax, 0xffffffff
jne 0x45fefe
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.0040c8c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x838]
call fcn.0040c290
sub eax, 1
push eax
lea ecx, [ebp - 0x838]
call fcn.004118b0
movzx edx, word [eax]
cmp edx, 0x5c
je 0x45fea1
push 0x5c
lea ecx, [ebp - 0x838]
call fcn.00411890
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x854]
push edx
call fcn.00405400
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.0040ba70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x854]
call fcn.0040d330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
call fcn.0040d330
lea ecx, [ebp + 8]
call fcn.00401fc0
push eax
lea ecx, [ebp - 0x14]
call fcn.00412c70
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
call fcn.0040dea0
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 0x45ff83
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x858], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040de80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040de80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d330
mov eax, dword [ebp - 0x858]
jmp 0x460068
mov eax, dword [ebp - 0x860]
movzx ecx, byte [eax + 0x2c9]
test ecx, ecx
je 0x45ffc0
lea ecx, [ebp - 0x1c]
call fcn.0040dea0
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 0x45fffd
lea ecx, [ebp - 0x1c]
call fcn.0040dea0
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.00412c30
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.0040de80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040de80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d330
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.004313c7
mov esp, ebp
pop ebp
ret 0x1c