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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508936
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x541074]
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.00434720], vtable.ui::CDuiString.0
call fcn.00434660
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, 0x51b9cc
mov eax, dword [0x542094]
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 0x493390
sub esi, edx
sar esi, 1
cmp esi, 0x3f
jl 0x4933c8
lea eax, [esi*2 + 2]
mov dword [ebp - 0x98], 0
push eax
push 0
call fcn.004e7fed
mov ecx, eax
add esp, 8
mov dword [ebp - 0x98], ecx
push esi
push edi
push ecx
call fcn.004e9f3c
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 [0x54211c]
cmp word [eax], 0
jne 0x493463
push dword [ebp - 0x120]
call fcn.00434530
push dword [ebp - 0x98]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4936cf
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x49345c
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 0x493692
xor edi, edi
jmp 0x493692
push eax
call fcn.00434530
cmp byte [0x5480b6], 0
je 0x49347d
mov edi, dword [0x548130]
jmp 0x493585
mov ebx, dword [ebp - 0x98]
push 0x340
call fcn.004c8893
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 0x4934c4
mov eax, dword [0x51bb3c]
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 0x4936b7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
push 0x1c
sete bl
call fcn.004c8893
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 0x493555
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.0044f560
mov dword [esi], eax
mov eax, dword [0x5481a4]
mov dword [0x5481a0], eax
test eax, eax
jne 0x4936c1
push 8
call fcn.004c8893
mov edi, eax
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], esi
test edi, edi
je 0x4936cf
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x358]
push eax
push ecx
mov ecx, edi
call fcn.00450f10
add esp, 0xc
test eax, eax
jne 0x4936cf
mov esi, dword [ebp - 0x128]
mov dword [ebp - 0x35c], esi
test esi, esi
je 0x4936cf
push esi
call fcn.004c8b41
add esp, 4
mov ebx, eax
cmp dword [edi], 1
je 0x4935e4
mov dword [0x5481a0], 0x80000
jmp 0x493605
push ecx
mov ecx, dword [edi + 4]
push esi
push ebx
push dword [ebp - 0x358]
call fcn.00450d80
mov dword [0x5481a0], eax
test eax, eax
je 0x493627
cmp eax, 0x600
je 0x493627
push ebx
call fcn.004c8d6c
add esp, 4
cmp byte [0x5480b6], 0
jne 0x4936cf
mov ecx, edi
call fcn.004510b0
jmp 0x4936cf
cmp byte [0x5480b6], 0
jne 0x49366c
cmp dword [edi], 1
je 0x493641
mov dword [0x5481a0], 0x80000
jmp 0x49366c
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00450e30
push 0x340
push esi
mov dword [0x5481a0], eax
call fcn.004c8b33
push 8
push edi
call fcn.004c8b33
mov esi, dword [ebp - 0x35c]
add esp, 0x10
test ebx, ebx
je 0x4936cf
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov esi, eax
mov ecx, esi
call fcn.00496d50
push ebx
mov edi, eax
call fcn.004c8d6c
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 0x4936f4
push eax
call fcn.004e7744
add esp, 4
jmp 0x4936f4
mov dword [0x5481a0], 0x200
push 0x340
push esi
call fcn.004c8b33
add esp, 8
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x9c], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x4936f2
push eax
call fcn.004e7744
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov dword [ebp - fcn.00434720], vtable.ui::CDuiString.0
cmp eax, ecx
je 0x493717
push eax
call fcn.004e7744
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.004c8882
mov esp, ebp
pop ebp
ret 4