Function at 0x48b670
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b82db
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2f0], ecx
mov edx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 0x18]
mov ebx, dword [sym.imp.gdiplus.dll_GdipAlloc]
mov dword [ebp - 0x2ec], eax
test edx, edx
jne 0x48bb19
lea eax, [ebp - 0x90]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
push 0xffffffffffffffff
push dword [0x4e60d4]
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x98]
xor eax, eax
mov word [ebp - 0x90], ax
call fcn.00429c90
mov dword [ebp - 4], esi
mov eax, dword [0x4e615c]
cmp word [eax], si
jne 0x48b7c6
mov eax, dword [ebp + 8]
test eax, eax
je 0x48b716
push eax
lea ecx, [ebp - 0x98]
call fcn.00429b60
push dword [ebp - 0x94]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x48b771
push 0x10
call ebx
mov esi, eax
mov dword [ebp - 0x2e8], esi
test esi, esi
je 0x48b7bf
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x2cc]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esi + 4], eax
jmp 0x48ba9b
push dword [ebp + 8]
call edi
test eax, eax
je 0x48ba9b
push 0x10
call ebx
mov esi, eax
mov dword [ebp - 0x2e8], esi
test esi, esi
je 0x48b7bf
lea eax, [ebp - 0x2cc]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromFile]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esi + 4], eax
jmp 0x48ba9b
xor esi, esi
jmp 0x48ba9b
push eax
lea ecx, [ebp - 0x98]
call fcn.00429b60
cmp byte [0x4e90b4], 0
je 0x48b7e6
mov edi, dword [0x4e90b8]
jmp 0x48b8ff
mov eax, dword [ebp - 0x94]
push 0x340
mov dword [ebp - 0x2d0], eax
call fcn.00493133
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2d8], ebx
lea edi, [ebx + 0x138]
mov dword [ebx], 0
push edi
push 0x104
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 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 0x48b833
mov eax, dword [0x4c9500]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x2d0]
mov dword [edi], eax
mov dword [ebp - 0x2d4], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x2d4], eax
cmp eax, 0xffffffff
je 0x48bace
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 - 0x2d4]
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
test bl, bl
je 0x48b8c9
push 1
push 0
push 0
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.0043d6c0
mov ebx, dword [ebp - 0x2d8]
mov dword [ebx], eax
mov eax, dword [0x4e9104]
mov dword [0x4e9100], eax
test eax, eax
jne 0x48bad8
push 8
call fcn.00493133
mov edi, eax
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], ebx
test edi, edi
je 0x48bae6
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, edi
call fcn.0043ed10
add esp, 0xc
test eax, eax
je 0x48b95a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x48bc1a
push eax
call fcn.0049b90f
add esp, 4
jmp 0x48bc1a
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x2cc], eax
test eax, eax
jne 0x48b99d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x48bc1a
push eax
call fcn.0049b90f
add esp, 4
jmp 0x48bc1a
push eax
call fcn.004933e1
add esp, 4
mov ebx, eax
cmp dword [edi], 1
je 0x48b9b9
mov dword [0x4e9100], 0x80000
jmp 0x48b9df
push ecx
push dword [ebp - 0x2cc]
mov ecx, dword [edi + 4]
push ebx
push dword [ebp - 0x2d0]
call fcn.0043eb80
mov dword [0x4e9100], eax
test eax, eax
je 0x48ba2b
cmp eax, 0x600
je 0x48ba2b
push ebx
call fcn.00493645
add esp, 4
cmp byte [0x4e90b4], 0
jne 0x48b9f8
mov ecx, edi
call fcn.0043eeb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x48bc1a
push eax
call fcn.0049b90f
add esp, 4
jmp 0x48bc1a
cmp byte [0x4e90b4], 0
jne 0x48ba3b
mov ecx, edi
call fcn.0043eeb0
test ebx, ebx
je 0x48ba9b
push dword [ebp - 0x2cc]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov ecx, dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
push 0x10
call ecx
mov esi, eax
test esi, esi
je 0x48ba8a
lea eax, [ebp - 0x2cc]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esi + 4], eax
jmp 0x48ba8c
xor esi, esi
push ebx
call fcn.00493645
mov eax, dword [edi]
add esp, 4
push edi
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x48bc1a
push eax
call fcn.0049b90f
add esp, 4
jmp 0x48bc1a
mov dword [0x4e9100], 0x200
push 0x340
push ebx
call fcn.004933d3
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], vtable.UiLib::CDuiString.0
cmp eax, ecx
je 0x48bc1a
push eax
call fcn.0049b90f
add esp, 4
jmp 0x48bc1a
mov eax, dword [0x4e90c0]
test eax, eax
push edx
push dword [ebp + 8]
cmove eax, dword [0x4e90bc]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
je 0x48bc1a
mov ecx, dword [0x4e90c0]
test ecx, ecx
push edi
cmove ecx, dword [0x4e90bc]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x2d0], eax
push edi
test eax, eax
jne 0x48bb69
call dword [sym.imp.KERNEL32.DLL_FreeResource]
jmp 0x48bc1a
mov eax, dword [0x4e90c0]
test eax, eax
cmove eax, dword [0x4e90bc]
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x2cc], eax
test eax, eax
je 0x48bc1a
push eax
call fcn.004933e1
add esp, 4
mov ebx, eax
push dword [ebp - 0x2cc]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push ebx
call fcn.00496320
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
test ebx, ebx
je 0x48bc1a
push dword [ebp - 0x2cc]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov ecx, dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
push 0x10
call ecx
mov esi, eax
test esi, esi
je 0x48bc09
lea eax, [ebp - 0x2cc]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp - 0x2cc], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esi + 4], eax
jmp 0x48bc0b
xor esi, esi
push ebx
call fcn.00493645
mov eax, dword [edi]
add esp, 4
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x2f0]
cmp dword [eax + 4], 0
je 0x48c0d2
test esi, esi
je 0x48c0d2
mov ebx, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
lea eax, [ebp - 0x2dc]
push eax
push dword [esi + 4]
mov edi, esi
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov byte [ebp - 0x30c], 1
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2dc], 0
call ebx
test eax, eax
je 0x48bc8c
mov dword [esi + 8], eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x48bcad
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x2ec]
test ecx, ecx
je 0x48bd77
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov ebx, dword [ecx + 0xc]
sub ebx, dword [ecx + 4]
mov dword [ebp - 0x2d8], eax
test eax, eax
jle 0x48bd71
test ebx, ebx
jle 0x48bd71
cmp dword [ebp - 0x2dc], eax
jne 0x48bcf0
cmp dword [ebp - 0x2d4], ebx
je 0x48bd71
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov dword [ebp - 0x2e8], eax
test eax, eax
je 0x48bd1b
push ecx
push ebx
push dword [ebp - 0x2d8]
mov ecx, eax
call fcn.0043b0d0
mov edi, eax
mov dword [ebp - 0x2cc], eax
jmp 0x48bd23
xor edi, edi
mov dword [ebp - 0x2cc], edi
push edi
lea ecx, [ebp - 0x2e4]
call fcn.0043afe0
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.0043ae50
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.0048c920
push ebx
push dword [ebp - 0x2d8]
lea ecx, [ebp - 0x2e4]
sub esp, 8
push esi
call fcn.0048c8e0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push dword [ebp - 0x2e4]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ebx, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x48c03c
cmp dword [esi], 0
jne 0x48bd91
cmp dword [esi + 4], 0
je 0x48c03c
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0
push eax
push dword [edi + 4]
call ebx
test eax, eax
je 0x48bdae
mov dword [edi + 8], eax
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x48bdcf
mov dword [edi + 8], eax
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov ebx, eax
mov dword [ebp - 0x2d0], eax
test ebx, ebx
je 0x48be23
lea eax, [ebp - 0x2d8]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
push eax
push 0
push 0x26200a
push 0
push dword [ebp - 0x2dc]
mov dword [ebp - 0x2d8], 0
push dword [ebp - 0x2d4]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x2d8]
mov dword [ebx + 4], eax
jmp 0x48be2b
xor ebx, ebx
mov dword [ebp - 0x2d0], ebx
push ebx
lea ecx, [ebp - 0x308]
call fcn.0043afe0
push 0xff000000
push dword [ebp - 0x308]
call dword [sym.imp.gdiplus.dll_GdipGraphicsClear]
push 4
push dword [ebp - 0x308]
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2e4]
push eax
push 0
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2e4], 0
call dword [sym.imp.gdiplus.dll_GdipCreatePath]
push dword [esi + 4]
movups xmm0, xmmword [ebp - 0x300]
mov edx, dword [esi]
lea ecx, [ebp - 0x2e4]
sub esp, 0x10
mov dword [ebp - 0x2e0], eax
mov eax, esp
movups xmmword [eax], xmm0
call fcn.0048b4a0
add esp, 0x14
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x2d8]
push eax
push 0xffffffffffffffff
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
push dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2d8]
push eax
push dword [ebp - 0x308]
mov dword [ebp - 0x2e8], eax
call dword [sym.imp.gdiplus.dll_GdipFillPath]
mov esi, dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
lea eax, [ebp - 0x33c]
push eax
push 0x26200a
push 1
lea eax, [ebp - 0x300]
push eax
push dword [ebx + 4]
call esi
test eax, eax
je 0x48bf22
mov dword [ebx + 8], eax
lea eax, [ebp - 0x354]
push eax
push 0x26200a
push 2
lea eax, [ebp - 0x300]
push eax
push dword [edi + 4]
call esi
test eax, eax
je 0x48bf43
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2dc], 0
test ecx, ecx
jle 0x48bfe4
mov eax, dword [ebp - 0x334]
mov edi, dword [ebp - 0x344]
mov ebx, dword [ebp - 0x32c]
add edi, 3
mov esi, dword [ebp - 0x2f8]
mov dword [ebp - 0x2ec], eax
xor eax, eax
mov dword [ebp - 0x2d4], ebx
xor edx, edx
test esi, esi
jle 0x48bfbb
mov ecx, ebx
mov eax, edi
nop
mov bl, byte [ecx]
cmp bl, byte [eax]
jae 0x48bf9e
mov byte [eax], bl
mov esi, dword [ebp - 0x2f8]
inc edx
add ecx, 4
add eax, 4
cmp edx, esi
jl 0x48bf90
mov ecx, dword [ebp - 0x2f4]
mov eax, dword [ebp - 0x2dc]
mov ebx, dword [ebp - 0x2d4]
add ebx, dword [ebp - 0x2ec]
inc eax
add edi, dword [ebp - 0x2ec]
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d4], ebx
cmp eax, ecx
jl 0x48bf84
mov edi, dword [ebp - 0x2cc]
mov ebx, dword [ebp - 0x2d0]
mov esi, dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
lea eax, [ebp - 0x354]
push eax
push dword [edi + 4]
call esi
test eax, eax
je 0x48bffd
mov dword [edi + 8], eax
lea eax, [ebp - 0x33c]
push eax
push dword [ebx + 4]
call esi
test eax, eax
je 0x48c010
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push dword [ebp - 0x2e8]
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
push dword [ebp - 0x2e4]
call dword [sym.imp.gdiplus.dll_GdipDeletePath]
push dword [ebp - 0x308]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push 0
lea eax, [ebp - 0x31c]
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x48c055
mov dword [edi + 8], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x48c076
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x2d0]
push eax
push dword [edi + 4]
mov dword [ebp - 0x2d0], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x48c0a3
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x2d0]
lea edx, [ebp - 0x324]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x2f0]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov edx, dword [edi]
mov ecx, edi
push 1
mov esi, eax
call dword [edx]
mov eax, esi
jmp 0x48c0d4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 0x14