Function at 0x4861f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x48eee2
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b4970]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x128]
mov esi, ecx
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x44]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x44]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], edx
lea eax, [esp + 0x58]
mov dword [esp + 0x110], ebx
push eax
mov dword [esp + 0x5c], ebx
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [esp + 0x5c], eax
mov byte [esp + 0x110], 1
fld1
cmp byte [0x4b626b], bl
je 0x486299
fst dword [0x4b7b70]
mov byte [0x4b626b], bl
fst dword [0x4b7b88]
fst dword [0x4b7ba0]
fst dword [0x4b7bd0]
fldz
fld st(0)
fld dword [esp + 0x134]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x486315
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4862d4
fstp st(0)
fstp st(0)
fld dword [str._n_RSDSg]
fstp dword [esp + 0x134]
fld dword [esp + 0x134]
jmp 0x4862f1
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4862ef
fstp st(0)
fstp dword [esp + 0x134]
fld dword [esp + 0x134]
jmp 0x4862f1
fstp st(1)
mov ecx, dword [esp + 0x58]
fstp dword [0x4b7bb8]
push ebx
push ebx
push 0x4b7b70
push 1
push ebx
push ecx
call sub.gdiplus.dll_GdipSetImageAttributesColorMatrix
cmp eax, ebx
je 0x48631b
mov dword [esp + 0x5c], eax
jmp 0x48631b
fstp st(0)
fstp st(1)
fstp st(0)
cmp esi, ebx
je 0x48647e
mov eax, dword [esi + 4]
lea edx, [esp + 0x78]
push edx
push eax
mov dword [esp + 0x80], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x48633f
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x9c]
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0xa4], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486366
mov dword [esi + 8], eax
mov edi, dword [esp + 0x120]
fild dword [edi]
mov ecx, dword [esp + 0x9c]
fstp dword [esp + 0x3c]
fild dword [edi + 4]
fstp dword [esp + 0x2c]
fild dword [esp + 0x9c]
test ecx, ecx
jge 0x486392
fadd dword [0x4a25a4]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x24]
fild dword [esp + 0x18]
test edx, edx
jge 0x4863a8
fadd dword [0x4a25a4]
mov ecx, dword [esi + 4]
fstp dword [esp + 0x54]
lea eax, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0x98], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x4863cb
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x8c]
push eax
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x94], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4863f5
mov dword [esi + 8], eax
mov edx, dword [esp + 0x8c]
fild dword [esp + 0x8c]
test edx, edx
jge 0x48640d
fadd dword [0x4a25a4]
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x20]
fild dword [esp + 0x18]
push ebx
push ebx
push ebx
push 2
test eax, eax
jge 0x486428
fadd dword [0x4a25a4]
mov ecx, dword [esi + 4]
sub esp, 0x20
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x74]
fld dword [esp + 0x50]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x84]
fstp dword [esp + 0xc]
fld dword [esp + 0x54]
fstp dword [esp + 8]
fld dword [esp + 0x5c]
fstp dword [esp + 4]
fld dword [esp + 0x6c]
fstp dword [esp]
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x486485
mov dword [esp + 0x88], eax
jmp 0x486485
mov edi, dword [esp + 0x120]
cmp ebp, ebx
je 0x486614
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x98]
push eax
push ecx
mov dword [esp + 0xa0], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x4864ac
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x98]
lea eax, [esp + 0xa0]
push eax
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0xa8], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x4864d6
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0xa4]
push eax
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xac], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486500
mov dword [ebp + 8], eax
mov edx, dword [edi + 8]
sub edx, dword [esp + 0xa4]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
test edx, edx
jge 0x48651c
fadd dword [0x4a25a4]
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x2c]
fild dword [edi + 4]
fstp dword [esp + 0x24]
fild dword [esp + 0x18]
test eax, eax
jge 0x486539
fadd dword [0x4a25a4]
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x50]
fild dword [esp + 0x20]
test ecx, ecx
jge 0x48654f
fadd dword [0x4a25a4]
mov eax, dword [ebp + 4]
fstp dword [esp + 0x54]
lea edx, [esp + 0x74]
push edx
push eax
mov dword [esp + 0x7c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x48656c
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x7c]
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x84], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486590
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x7c]
fild dword [esp + 0x7c]
test ecx, ecx
jge 0x4865a2
fadd dword [0x4a25a4]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x20]
fild dword [esp + 0x18]
push ebx
push ebx
push ebx
push 2
test edx, edx
jge 0x4865bd
fadd dword [0x4a25a4]
mov eax, dword [ebp + 4]
sub esp, 0x20
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
fld dword [esp + 0x50]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x84]
fstp dword [esp + 0xc]
fld dword [esp + 0x80]
fstp dword [esp + 8]
fld dword [esp + 0x54]
fstp dword [esp + 4]
fld dword [esp + 0x5c]
fstp dword [esp]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x486614
mov dword [esp + 0x88], eax
cmp dword [esp + 0x124], ebx
je 0x486bcb
cmp esi, ebx
jne 0x48662b
mov dword [esp + 0x38], ebx
jmp 0x486655
mov eax, dword [esi + 4]
lea edx, [esp + 0xa8]
push edx
push eax
mov dword [esp + 0xb0], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x48664a
mov dword [esi + 8], eax
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x38], ecx
cmp ebp, ebx
jne 0x48665d
xor eax, eax
jmp 0x486683
mov eax, dword [ebp + 4]
lea edx, [esp + 0x94]
push edx
push eax
mov dword [esp + 0x9c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x48667c
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x94]
mov ebp, dword [edi + 8]
sub ebp, dword [edi]
mov edx, dword [esp + 0x124]
sub ebp, eax
mov eax, dword [edx + 4]
sub ebp, dword [esp + 0x38]
lea ecx, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x78], ebx
call sub.gdiplus.dll_GdipGetImageHeight
mov esi, dword [esp + 0x124]
cmp eax, ebx
je 0x4866b5
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
cmp dword [esp + 0x70], eax
ja 0x4866de
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x4866da
mov dword [esi + 8], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x80]
push ecx
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x88], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486701
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
cmp dword [esp + 0x80], eax
ja 0x48672c
mov ecx, dword [esi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x44], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486728
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [edi]
add edx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp dword [esp + 0x20]
fild dword [edi + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fstp dword [esp + 0x60]
fld dword [esp + 0x18]
fstp dword [esp + 0x64]
fild dword [esp + 0x1c]
test eax, eax
jge 0x486767
fadd dword [0x4a25a4]
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x68]
fild dword [esp + 0x30]
test eax, eax
jge 0x48677d
fadd dword [0x4a25a4]
mov ecx, dword [esp + 0x60]
fstp dword [esp + 0x6c]
fld dword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
fld st(0)
fld qword [esp + 0x138]
mov dword [esp + 0x50], eax
fmul st(1), st(0)
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x6c]
fxch st(1)
mov dword [esp + 0x54], ecx
fstp dword [esp + 0x50]
mov dword [esp + 0x4c], edx
fmul dword [esp + 0x54]
fstp dword [esp + 0x54]
fldz
fld dword [esp + 0x134]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x486b31
fnstcw word [esp + 0x28]
movzx eax, word [esp + 0x28]
fstp st(2)
or eax, 0xc00
fstp st(0)
mov dword [esp + 0x18], eax
fmul qword [0x4a25a8]
mov eax, dword [esp + 0x118]
fldcw word [esp + 0x18]
push eax
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3b], bl
fistp dword [esp + 0x1c]
mov dl, byte [esp + 0x1c]
mov byte [esp + 0x3a], dl
fldcw word [esp + 0x2c]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x124]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x486852
mov ecx, dword [esp + 0x124]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x124]
lea eax, [esp + 0x24]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
push eax
push edx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486881
mov ecx, dword [esp + 0x124]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0x124]
mov byte [esp + 0x110], 4
mov ecx, dword [eax + 4]
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x28], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x4868f6
mov edx, dword [esp + 0x124]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 4]
push ecx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x486925
mov ecx, dword [esp + 0x124]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x18]
fild dword [esp + 0x18]
test edx, edx
jge 0x486937
fadd dword [0x4a25a4]
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x18]
fild dword [esp + 0x24]
test eax, eax
jge 0x48694d
fadd dword [0x4a25a4]
fstp dword [esp + 0x54]
push ebx
fld dword [esp + 0x70]
push ebx
mov ecx, dword [esp + 0x12c]
push ebx
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x34]
push 2
sub esp, 0x20
fstp dword [esp + 0x1c]
fld dword [esp + 0x98]
fstp dword [esp + 0x18]
fild dword [esp + 0x160]
fstp dword [esp + 0x14]
fild dword [esp + 0x15c]
fstp dword [esp + 0x10]
fld dword [esp + 0x84]
fstp dword [esp + 0xc]
fld dword [esp + 0x48]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x4869be
mov dword [esp + 0xb0], eax
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x44]
sub eax, ecx
push eax
push ebp
push ebx
push ebx
push edx
push eax
mov eax, dword [edi]
add eax, dword [esp + 0x54]
push ebp
push ecx
mov ecx, dword [esp + 0x140]
push eax
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov edx, dword [esp + 0x118]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, byte [esp + 0x36]
push eax
lea ecx, [esp + 0xf0]
push ecx
call fcn.004786c0
push eax
mov edi, str.AlphaBlend_
lea esi, [esp + 0xdc]
mov byte [esp + 0x11c], 5
call fcn.00405bb0
add esp, 0xc
mov edi, 0x10
mov byte [esp + 0x110], 6
cmp dword [eax + 0x18], edi
jb 0x486a42
mov edx, dword [eax + 4]
jmp 0x486a45
lea edx, [eax + 4]
mov ebp, 0xf
mov eax, edx
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x486a64
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xbc]
call fcn.00403980
lea edx, [esp + 0xb4]
push edx
call fcn.00477fd0
add esp, 4
cmp dword [esp + 0xcc], edi
jb 0x486aa4
mov eax, dword [esp + 0xb8]
push eax
call fcn.00453f5c
add esp, 4
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0xe8], edi
jb 0x486ad2
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00453f5c
add esp, 4
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0x104], edi
jb 0x486b00
mov edx, dword [esp + 0xf0]
push edx
call fcn.00453f5c
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x486b19
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x486bcb
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x486bcb
fucompp
fnstsw ax
test ah, 0x44
jnp 0x486b3e
lea ebx, [esp + 0x58]
fld dword [esp + 0x6c]
sub esp, 0x10
fstp dword [esp + 0xc]
mov edi, esi
mov ecx, ebx
fstp dword [esp + 8]
lea eax, [esp + 0x58]
fild dword [esp + 0x140]
lea esi, [esp + 0x94]
fstp dword [esp + 4]
fild dword [esp + 0x13c]
fstp dword [esp]
call fcn.00405eb0
mov edi, dword [esp + 0x120]
fld dword [esp + 0x6c]
mov esi, dword [edi + 4]
push 0xcc0020
call fcn.00488e80
fld dword [esp + 0x6c]
push eax
call fcn.00488e80
fld dword [esp + 0x20]
push eax
call fcn.00488e80
fld dword [esp + 0x2c]
push eax
call fcn.00488e80
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
add edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x130]
push eax
sub ecx, esi
push ecx
push ebp
push esi
push edx
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x58]
push eax
call sub.gdiplus.dll_GdipDisposeImageAttributes
mov ecx, dword [esp + 0x84]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0x28