Function at 0x417be5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451566
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x465100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x468], ecx
mov dword [ebp - 0x460], edi
cmp edi, ebx
je 0x417dd6
cmp dword [ebp + 0xc], ebx
je 0x417dd6
xor eax, eax
mov word [ebp - 0x43c], ax
push ebx
mov eax, 0x457794
lea esi, [ebp - 0x43c]
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
call fcn.004017a0
mov eax, edi
mov dword [ebp - 4], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417b12
sub eax, edx
sar eax, 1
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x464], 1
cmp eax, 1
jbe 0x417b5b
cmp word [edi + 2], 0x3a
jne 0x417b4d
mov dword [ebp - 0x464], 0
cmp word [edi], 0x5c
jne 0x417b5b
mov ecx, 0x5f
mov word [edi], cx
xor esi, esi
mov dword [ebp - 0x46c], esi
test eax, eax
je 0x417c6c
jmp 0x417b70
movzx ecx, word [edi + esi*2]
mov eax, ecx
lea edx, [eax - 0x22]
cmp edx, 0x1d
ja case.0x417b89.35
movzx edx, byte [edx + 0x417e10]
jmp dword [edx*4 + 0x417df8]
lea eax, [esi + 1]
cmp eax, dword [ebp - 0x470]
jae 0x417baa
cmp word [edi + esi*2 + 2], 0x2a
je 0x417baa
push 0x28
jmp 0x417c43
mov dword [ebp - 0x45c], 1
xor ebx, ebx
jmp 0x417c59
cmp dword [ebp - 0x45c], 0
je 0x417bd1
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
jmp 0x417c59
push 0x29
jmp 0x417c43
cmp dword [ebp - 0x45c], 0
je 0x417c59
mov ebx, 1
jmp 0x417c59
push 0x40
jmp 0x417c3b
cmp dword [ebp - 0x45c], 0
je case.0x417b89.35
test ebx, ebx
je case.0x417b89.35
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
add eax, 0xffffffd0
push eax
lea eax, [ebp - 0x458]
push eax
xor ebx, ebx
call edx
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.00401470
lea esi, [ebp - 0x458]
mov byte [ebp - 4], bl
call fcn.00401410
mov esi, dword [ebp - 0x46c]
jmp 0x417c59
push ecx
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
mov eax, 1
lea edi, [ebp - 0x43c]
call fcn.004109d0
mov edi, dword [ebp - 0x460]
inc esi
mov dword [ebp - 0x46c], esi
cmp esi, dword [ebp - 0x470]
jb 0x417b70
cmp dword [ebp - 0x464], 0
je 0x417d04
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x420]
push ecx
push 0x104
push edi
call fcn.0043cc52
lea eax, [ebp - 0x420]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417cb0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x422], 0x5c
je 0x417cdd
push 0x45812c
push 0x104
push edi
call fcn.0043c8f2
add esp, 0xc
mov eax, dword [ebp - 0x43c]
mov esi, 8
cmp dword [ebp - 0x428], esi
jae 0x417cf6
lea eax, [ebp - 0x43c]
push eax
push 0x104
push edi
call fcn.0043c8f2
jmp 0x417d29
mov eax, dword [ebp - 0x43c]
mov esi, 8
cmp dword [ebp - 0x428], esi
jae 0x417d1d
lea eax, [ebp - 0x43c]
push eax
push 0x104
push edi
call fcn.0043cc52
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0043f7e0
push edi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0043cc52
add esp, 0x18
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417d72
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
je 0x417da2
push 0x45812c
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043c8f2
add esp, 0xc
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0x1e
lea eax, [ebp - 0x218]
push eax
call edx
cmp dword [ebp - 0x428], esi
jb 0x417dcf
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0043bc47
add esp, 4
mov eax, 1
jmp 0x417dd8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b634
mov esp, ebp
pop ebp
ret 8