Function at 0x4769c0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x4a2baf
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4c3008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0x114
mov ecx, dword [ebp + 0x350]
call fcn.00401350
movzx eax, byte [0x4c5e81]
test eax, eax
jne 0x476adb
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x115
jae 0x476a2d
jmp 0x476a32
call fcn.00445a04
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax + 0x22c], 0
lea ecx, [ebp + 0x22c]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x476a61
cmp dword [ebp - 0x20], 0x114
jb 0x476a68
xor al, al
jmp 0x476c0e
mov edx, 1
imul eax, edx, 0x114
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x115
jae 0x476a81
jmp 0x476a86
call fcn.00445a04
mov ecx, dword [ebp - 0x24]
mov byte [ebp + ecx + 0x22c], 0
lea edx, [ebp + 0x22c]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.00472bd0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x350]
call fcn.00474460
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004012a0
mov al, 1
jmp 0x476c0e
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0x22a
jae 0x476af1
jmp 0x476af6
call fcn.00445a04
xor edx, edx
mov eax, dword [ebp - 0x28]
mov word [ebp + eax], dx
lea ecx, [ebp]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x476b1f
xor al, al
jmp 0x476c0e
cmp dword [ebp - 0x14], 0x114
jae 0x476b66
mov edx, 2
imul eax, edx, 0x114
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x22a
jae 0x476b41
jmp 0x476b46
call fcn.00445a04
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov word [ebp + edx], cx
lea eax, [ebp]
push eax
mov ecx, dword [ebp + 0x350]
call fcn.00474380
mov al, 1
jmp 0x476c0e
lea ecx, [ebp - 0x38]
call fcn.00474320
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00401c50
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x476bad
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004012a0
mov al, byte [ebp - 0xd]
jmp 0x476c0e
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.004027c0
lea ecx, [ebp - 0x38]
call fcn.00401300
cmp eax, dword [ebp - 0x18]
jne 0x476bd1
mov ecx, dword [ebp - 0x14]
sub ecx, 1
cmp ecx, dword [ebp - 0x18]
je 0x476be9
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004012a0
mov al, byte [ebp - 0xe]
jmp 0x476c0e
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 0x350]
call fcn.00474460
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004012a0
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.004456ce
add ebp, 0x348
mov esp, ebp
pop ebp
ret 4