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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7666
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
xor ecx, ecx
push 0xffffffffffffffff
mov word [ebp - 0x11c], cx
lea ecx, [ebp - 0x124]
push eax
mov dword [ebp - fcn.00429d50], vtable.UiLib::CDuiString.0
call fcn.00429c90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x9c], vtable.UiLib::CDuiString.0
mov word [ebp - 0x94], ax
mov edi, 0x4c5de8
mov eax, dword [0x4e60d4]
test eax, eax
mov dword [ebp - 0x98], ecx
cmovne edi, eax
mov esi, edi
lea edx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46c660
sub esi, edx
sar esi, 1
cmp esi, 0x3f
jl 0x46c698
lea eax, [esi*2 + 2]
mov dword [ebp - 0x98], 0
push eax
push 0
call fcn.0049e54b
mov ecx, eax
add esp, 8
mov dword [ebp - 0x98], ecx
push esi
push edi
push ecx
call fcn.0049e1da
mov eax, dword [ebp - 0x98]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi*2], cx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
mov eax, dword [0x4e615c]
cmp word [eax], 0
jne 0x46c733
push dword [ebp - 0x120]
call fcn.00429b60
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c99f
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x46c72c
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x358]
push ecx
push eax
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x358], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x358]
mov dword [edi + 4], eax
jmp 0x46c962
xor edi, edi
jmp 0x46c962
push eax
call fcn.00429b60
cmp byte [0x4e90b4], 0
je 0x46c74d
mov edi, dword [0x4e90b8]
jmp 0x46c855
mov ebx, dword [ebp - 0x98]
push 0x340
call fcn.00493133
mov esi, eax
add esp, 4
mov dword [ebp - 0x35c], esi
lea edi, [esi + 0x138]
mov dword [esi], 0
push edi
push 0x104
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x46c794
mov eax, dword [0x4c9500]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
mov dword [edi], eax
mov dword [ebp - 0x358], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x358], eax
cmp eax, 0xffffffff
je 0x46c987
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.00493133
mov edi, eax
add esp, 4
mov byte [edi], 1
mov byte [edi + 1], bl
mov ecx, dword [ebp - 0x358]
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x46c825
push 1
push 0
push 0
push dword [ebp - 0x358]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.0043d6c0
mov dword [esi], eax
mov eax, dword [0x4e9104]
mov dword [0x4e9100], eax
test eax, eax
jne 0x46c991
push 8
call fcn.00493133
mov edi, eax
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], esi
test edi, edi
je 0x46c99f
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x358]
push eax
push ecx
mov ecx, edi
call fcn.0043ed10
add esp, 0xc
test eax, eax
jne 0x46c99f
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x35c], esi
test esi, esi
je 0x46c99f
push esi
call fcn.004933e1
add esp, 4
mov ebx, eax
cmp dword [edi], 1
je 0x46c8b4
mov dword [0x4e9100], 0x80000
jmp 0x46c8d5
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x358]
call fcn.0043eb80
mov dword [0x4e9100], eax
test eax, eax
je 0x46c8f7
cmp eax, 0x600
je 0x46c8f7
push ebx
call fcn.00493645
add esp, 4
cmp byte [0x4e90b4], 0
jne 0x46c99f
mov ecx, edi
call fcn.0043eeb0
jmp 0x46c99f
cmp byte [0x4e90b4], 0
jne 0x46c93c
cmp dword [edi], 1
je 0x46c911
mov dword [0x4e9100], 0x80000
jmp 0x46c93c
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.0043ec30
push 0x340
push esi
mov dword [0x4e9100], eax
call fcn.004933d3
push 8
push edi
call fcn.004933d3
mov esi, dword [ebp - 0x35c]
add esp, 0x10
test ebx, ebx
je 0x46c99f
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov esi, eax
mov ecx, esi
call fcn.00447b70
push ebx
mov edi, eax
call fcn.00493645
mov ecx, dword [esi]
add esp, 4
push esi
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x9c], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x46c9c4
push eax
call fcn.0049b90f
add esp, 4
jmp 0x46c9c4
mov dword [0x4e9100], 0x200
push 0x340
push esi
call fcn.004933d3
add esp, 8
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x9c], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x46c9c2
push eax
call fcn.0049b90f
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - fcn.00429d50], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x46c9e7
push eax
call fcn.0049b90f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 4