Function at 0x46091f
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, 0x4d5698
call fcn.004ce9f0
sub esp, 0x23c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x5096c0]
mov esi, 0x5096c0
push edi
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov eax, dword [0x5096c0]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x206
lea eax, [ebp - 0x246]
push ebx
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x248], bx
call fcn.00489db0
mov eax, dword [0x5096c0]
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [0x5096c0]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
push 0x4e5344
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00422646
push 0x103
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x460c99
lea eax, [ebp - 0x248]
push eax
call fcn.00489b50
cmp eax, 8
pop ecx
jb 0x460c99
cmp word [ebp - 0x246], 0x3a
jne 0x460c99
cmp word [ebp - 0x244], 0x5c
jne 0x460c99
lea eax, [ebp - 0x248]
push eax
push 3
pop ebx
lea eax, [ebp - 0x20]
call fcn.00422af1
lea eax, [ebp - 0x34]
push eax
call fcn.0045e7f0
test eax, eax
pop ecx
jne 0x460ae8
push 0x4eadf0
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00452d1c
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
push 0x4eadf8
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.00452d1c
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
push 0x4eae00
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.00452d1c
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
push 0x4eae08
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00452d1c
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
cmp dword [ebp - 0x30], 0
je 0x460af9
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
sar eax, 2
jne 0x460b4d
add edi, 0xfffffff0
mov eax, edi
call fcn.00422b5e
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
lea esi, [ebp - 0x34]
call fcn.004260d5
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, edi
call fcn.00405c8d
mov eax, ebx
jmp 0x460ce6
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x34]
call fcn.00460d98
test eax, eax
pop ecx
je 0x460af9
mov esi, dword [ebp - 0x30]
cmp esi, dword [ebp - 0x2c]
jbe 0x460b6b
call fcn.0048a49e
lea eax, [ebp - 0x34]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], esi
jbe 0x460b83
call fcn.0048a49e
test ebx, ebx
je 0x460b8e
lea eax, [ebp - 0x34]
cmp ebx, eax
je 0x460b93
call fcn.0048a49e
cmp dword [ebp - 0x38], esi
je 0x460c4f
lea esi, [ebp - 0x3c]
call fcn.0045c45a
lea edi, [ebp - 0x14]
call fcn.00422ab0
push 2
pop edi
push edi
lea esi, [ebp - 0x14]
call fcn.004228e8
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], edi
jl 0x460c30
push eax
mov dword [ecx - 0xc], edi
mov ecx, dword [ebp - 0x14]
and word [ecx + 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00422646
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.0045e8d1
mov esi, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405c8d
cmp dword [ebp - 0x14], 0
jne 0x460bfc
xor eax, eax
jmp 0x460c05
push dword [ebp - 0x14]
call fcn.00489b50
pop ecx
lea edx, [ebp - 0x14]
call fcn.0040e1f4
test esi, esi
jne 0x460c3a
test ebx, ebx
jne 0x460c1a
call fcn.0048a49e
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebx + 8]
jb 0x460c27
call fcn.0048a49e
add dword [ebp - 0x38], 4
jmp 0x460b76
push 0x80070057
call fcn.00422c1d
lea esi, [ebp - 0x3c]
call fcn.0045c45a
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00422bdc
jmp 0x460c5a
lea eax, [ebp - 0x20]
lea edi, [ebp - 0x18]
call fcn.00422ab0
lea eax, [ebp - 0x18]
call fcn.004325b0
lea esi, [ebp - 0x18]
call fcn.0045e9ac
push str.kwpinsttemp
mov eax, esi
push eax
call fcn.0040c5e6
call fcn.0045e9ac
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x460c91
push esi
call fcn.0045eacc
pop ecx
lea edi, [esi - 0x10]
jmp 0x460afc
add edi, 0xfffffff0
mov eax, edi
call fcn.00422b5e
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405c8d
lea esi, [ebp - 0x34]
call fcn.004260d5
lea eax, [ebx - 0x10]
call fcn.00405c8d
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405c8d
mov eax, edi
call fcn.00405c8d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret