Function at 0x46c070
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x52a1e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.00407040
mov dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0x5c], 0
jbe 0x46c236
mov eax, dword [ebp + 0x5c]
push eax
lea ecx, [ebp + 4]
call fcn.0046d3b0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x3c]
push edx
mov eax, dword [ebp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp + 0x50], eax
cmp dword [ebp + 0x50], 0
jbe 0x46c218
mov ecx, dword [ebp + 0x50]
cmp ecx, dword [ebp + 0x5c]
ja 0x46c218
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x38], edx
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x48], eax
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x48]
push edx
call fcn.00478380
add esp, 8
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x28], 0x10
jb 0x46c142
mov ecx, dword [ebp]
mov dword [ebp + 0x58], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x58], edx
jmp 0x46c148
lea eax, [ebp + 0x14]
mov dword [ebp + 0x58], eax
mov ecx, dword [ebp + 0x58]
add ecx, dword [ebp + 0x34]
movsx edx, byte [ecx - 1]
cmp edx, 0x5c
je 0x46c1ad
movsx eax, byte [0x5352bc]
test eax, eax
jne 0x46c16b
mov dword [ebp + 0x54], 0
jmp 0x46c19c
mov dword [ebp + 0x60], 0x5352bc
mov ecx, dword [ebp + 0x60]
add ecx, 1
mov dword [ebp + 0x2c], ecx
mov edx, dword [ebp + 0x60]
mov al, byte [edx]
mov byte [ebp + 0x67], al
add dword [ebp + 0x60], 1
cmp byte [ebp + 0x67], 0
jne 0x46c17b
mov ecx, dword [ebp + 0x60]
sub ecx, dword [ebp + 0x2c]
mov dword [ebp + 0x30], ecx
mov edx, dword [ebp + 0x30]
mov dword [ebp + 0x54], edx
mov eax, dword [ebp + 0x54]
push eax
push 0x5352bc
lea ecx, [ebp + 0x14]
call fcn.00406e30
mov ecx, dword [ebp + 0x70]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 0x70]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 0x70]
call fcn.00407040
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x70]
call fcn.00416490
mov ecx, dword [ebp + 0x4c]
or ecx, 1
mov dword [ebp + 0x4c], ecx
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x46c200
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x44], eax
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.004ba0bc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.00407040
mov eax, dword [ebp + 0x70]
jmp 0x46c286
mov byte [ebp - 4], 0
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x46c236
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x40], eax
mov ecx, dword [ebp + 0x40]
push ecx
call fcn.004ba0bc
add esp, 4
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x24]
call fcn.00406b80
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x50]
call fcn.00454570
push 0x572e5c
lea eax, [ebp - 0x50]
push eax
call fcn.004be2db
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00407040
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x14]
call fcn.00407040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
mov esp, ebp
pop ebp
ret