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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525286
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.004524a0], vtable.ui::CDuiString.0
call fcn.004523e0
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, 0x53cb10
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 0x49e9d0
sub esi, edx
sar esi, 1
cmp esi, 0x3f
jl 0x49ea08
lea eax, [esi*2 + 2]
mov dword [ebp - 0x98], 0
push eax
push 0
call fcn.00502ac4
mov ecx, eax
add esp, 8
mov dword [ebp - 0x98], ecx
push esi
push edi
push ecx
call fcn.00508740
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 0x49eaa3
push dword [ebp - 0x120]
call fcn.004522b0
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49ed0f
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x49ea9c
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 0x49ecd2
xor edi, edi
jmp 0x49ecd2
push eax
call fcn.004522b0
cmp byte [0x56e830], 0
je 0x49eabd
mov edi, dword [0x56e82c]
jmp 0x49ebc5
mov ebx, dword [ebp - 0x98]
push 0x340
call fcn.004e1dfa
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 0x49eb04
mov eax, dword [0x53ca10]
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
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 0x49ecf7
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.004e1dfa
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 0x49eb95
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.004730a0
mov dword [esi], eax
mov eax, dword [0x56e8a4]
mov dword [0x56e8a0], eax
test eax, eax
jne 0x49ed01
push 8
call fcn.004e1dfa
mov edi, eax
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], esi
test edi, edi
je 0x49ed0f
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x358]
push eax
push ecx
mov ecx, edi
call fcn.00474a50
add esp, 0xc
test eax, eax
jne 0x49ed0f
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x35c], esi
test esi, esi
je 0x49ed0f
push esi
call fcn.004e22d3
add esp, 4
mov ebx, eax
cmp dword [edi], 1
je 0x49ec24
mov dword [0x56e8a0], 0x80000
jmp 0x49ec45
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x358]
call fcn.004748c0
mov dword [0x56e8a0], eax
test eax, eax
je 0x49ec67
cmp eax, 0x600
je 0x49ec67
push ebx
call fcn.004e22c5
add esp, 4
cmp byte [0x56e830], 0
jne 0x49ed0f
mov ecx, edi
call fcn.00474bf0
jmp 0x49ed0f
cmp byte [0x56e830], 0
jne 0x49ecac
cmp dword [edi], 1
je 0x49ec81
mov dword [0x56e8a0], 0x80000
jmp 0x49ecac
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00474970
push 0x340
push esi
mov dword [0x56e8a0], eax
call fcn.004e2095
push 8
push edi
call fcn.004e2095
mov esi, dword [ebp - 0x35c]
add esp, 0x10
test ebx, ebx
je 0x49ed0f
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov esi, eax
mov ecx, esi
call fcn.004a23f0
push ebx
mov edi, eax
call fcn.004e22c5
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 0x49ed34
push eax
call fcn.004fdfef
add esp, 4
jmp 0x49ed34
mov dword [0x56e8a0], 0x200
push 0x340
push esi
call fcn.004e2095
add esp, 8
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x9c], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x49ed32
push eax
call fcn.004fdfef
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - fcn.004524a0], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x49ed57
push eax
call fcn.004fdfef
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.004e1bb1
mov esp, ebp
pop ebp
ret 4