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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5254e6
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x5640a8]
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.00452790], vtable.ui::CDuiString.0
call fcn.004526d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x9c], vtable.ui::CDuiString.0
mov word [ebp - 0x94], ax
mov edi, 0x53cb08
mov eax, dword [0x5651c4]
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 0x49ebe0
sub esi, edx
sar esi, 1
cmp esi, 0x3f
jl 0x49ec18
lea eax, [esi*2 + 2]
mov dword [ebp - 0x98], 0
push eax
push 0
call fcn.00502cb9
mov ecx, eax
add esp, 8
mov dword [ebp - 0x98], ecx
push esi
push edi
push ecx
call fcn.005089c0
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 [0x56513c]
cmp word [eax], 0
jne 0x49ecb3
push dword [ebp - 0x120]
call fcn.004525a0
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ef1f
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x49ecac
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 0x49eee2
xor edi, edi
jmp 0x49eee2
push eax
call fcn.004525a0
cmp byte [0x56e90c], 0
je 0x49eccd
mov edi, dword [0x56e908]
jmp 0x49edd5
mov ebx, dword [ebp - 0x98]
push 0x340
call fcn.004e204b
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 0x49ed14
mov eax, dword [0x53ca00]
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 0x49ef07
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.004e204b
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 0x49eda5
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.004733a0
mov dword [esi], eax
mov eax, dword [0x56e980]
mov dword [0x56e97c], eax
test eax, eax
jne 0x49ef11
push 8
call fcn.004e204b
mov edi, eax
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], esi
test edi, edi
je 0x49ef1f
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x358]
push eax
push ecx
mov ecx, edi
call fcn.00474d50
add esp, 0xc
test eax, eax
jne 0x49ef1f
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x35c], esi
test esi, esi
je 0x49ef1f
push esi
call fcn.004e2524
add esp, 4
mov ebx, eax
cmp dword [edi], 1
je 0x49ee34
mov dword [0x56e97c], 0x80000
jmp 0x49ee55
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x358]
call fcn.00474bc0
mov dword [0x56e97c], eax
test eax, eax
je 0x49ee77
cmp eax, 0x600
je 0x49ee77
push ebx
call fcn.004e2516
add esp, 4
cmp byte [0x56e90c], 0
jne 0x49ef1f
mov ecx, edi
call fcn.00474ef0
jmp 0x49ef1f
cmp byte [0x56e90c], 0
jne 0x49eebc
cmp dword [edi], 1
je 0x49ee91
mov dword [0x56e97c], 0x80000
jmp 0x49eebc
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00474c70
push 0x340
push esi
mov dword [0x56e97c], eax
call fcn.004e22e6
push 8
push edi
call fcn.004e22e6
mov esi, dword [ebp - 0x35c]
add esp, 0x10
test ebx, ebx
je 0x49ef1f
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov esi, eax
mov ecx, esi
call fcn.004a2600
push ebx
mov edi, eax
call fcn.004e2516
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.ui::CDuiString.0
cmp eax, ecx
je 0x49ef44
push eax
call fcn.004fe1ff
add esp, 4
jmp 0x49ef44
mov dword [0x56e97c], 0x200
push 0x340
push esi
call fcn.004e22e6
add esp, 8
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x9c], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x49ef42
push eax
call fcn.004fe1ff
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - fcn.00452790], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x49ef67
push eax
call fcn.004fe1ff
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.004e1de4
mov esp, ebp
pop ebp
ret 4