Function at 0x41a605
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454276
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x468100]
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 0x41a7f6
cmp dword [ebp + 0xc], ebx
je 0x41a7f6
xor eax, eax
mov word [ebp - 0x43c], ax
push ebx
mov eax, 0x45a7a4
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 0x41a532
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 0x41a57b
cmp word [edi + 2], 0x3a
jne 0x41a56d
mov dword [ebp - 0x464], 0
cmp word [edi], 0x5c
jne 0x41a57b
mov ecx, 0x5f
mov word [edi], cx
xor esi, esi
mov dword [ebp - 0x46c], esi
test eax, eax
je 0x41a68c
jmp 0x41a590
movzx ecx, word [edi + esi*2]
mov eax, ecx
lea edx, [eax - 0x22]
cmp edx, 0x1d
ja case.0x41a5a9.35
movzx edx, byte [edx + 0x41a830]
jmp dword [edx*4 + 0x41a818]
lea eax, [esi + 1]
cmp eax, dword [ebp - 0x470]
jae 0x41a5ca
cmp word [edi + esi*2 + 2], 0x2a
je 0x41a5ca
push 0x28
jmp 0x41a663
mov dword [ebp - 0x45c], 1
xor ebx, ebx
jmp 0x41a679
cmp dword [ebp - 0x45c], 0
je 0x41a5f1
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
jmp 0x41a679
push 0x29
jmp 0x41a663
cmp dword [ebp - 0x45c], 0
je 0x41a679
mov ebx, 1
jmp 0x41a679
push 0x40
jmp 0x41a65b
cmp dword [ebp - 0x45c], 0
je case.0x41a5a9.35
test ebx, ebx
je case.0x41a5a9.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 0x41a679
push ecx
xor ebx, ebx
mov dword [ebp - 0x45c], ebx
mov eax, 1
lea edi, [ebp - 0x43c]
call fcn.004130e0
mov edi, dword [ebp - 0x460]
inc esi
mov dword [ebp - 0x46c], esi
cmp esi, dword [ebp - 0x470]
jb 0x41a590
cmp dword [ebp - 0x464], 0
je 0x41a724
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.0043f983
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 0x41a6d0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x422], 0x5c
je 0x41a6fd
push 0x45b4a4
push 0x104
push edi
call fcn.0043f60c
add esp, 0xc
mov eax, dword [ebp - 0x43c]
mov esi, 8
cmp dword [ebp - 0x428], esi
jae 0x41a716
lea eax, [ebp - 0x43c]
push eax
push 0x104
push edi
call fcn.0043f60c
jmp 0x41a749
mov eax, dword [ebp - 0x43c]
mov esi, 8
cmp dword [ebp - 0x428], esi
jae 0x41a73d
lea eax, [ebp - 0x43c]
push eax
push 0x104
push edi
call fcn.0043f983
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00442420
push edi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0043f983
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 0x41a792
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
je 0x41a7c2
push 0x45b4a4
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043f60c
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 0x41a7ef
mov eax, dword [ebp - 0x43c]
push eax
call fcn.0043e7d7
add esp, 4
mov eax, 1
jmp 0x41a7f8
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.0043e1c4
mov esp, ebp
pop ebp
ret 8