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

Disassembly:
push 0xffffffffffffffff
push 0x4ec930
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040bc70
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x49baa0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x49b284
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
jmp 0x49baa0
mov eax, edi
mov dword [esp + 0x24], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49b290
mov esi, dword [esp + 0x7c]
sub eax, edx
sar eax, 1
push eax
push edi
add esi, 0x78
call fcn.00401760
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x3c]
push edx
push ecx
push ebx
push ebx
add eax, 0x60
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b2e6
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b303
mov dword [ebp + 8], eax
mov edx, dword [ebp + 4]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b320
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x28]
ja 0x49b351
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b343
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x28]
jbe 0x49b4ef
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x49b381
mov esi, ebp
call fcn.004014c0
mov dword [esp + 0x34], eax
call fcn.00401490
mov ecx, dword [esp + 0x34]
mov edx, eax
mov esi, edi
call fcn.00401f90
mov dword [esp + 0x14], eax
jmp 0x49b387
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x49b3a1
mov edx, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x74], ebx
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b3c6
mov dword [ebp + 8], eax
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b3e7
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b404
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b421
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x30]
fild dword [esp + 0x30]
test ecx, ecx
jge 0x49b433
fadd dword [0x51266c]
fstp dword [esp + 0x60]
mov dword [esp + 0x38], esi
fild dword [esp + 0x38]
test esi, esi
jge 0x49b449
fadd dword [0x51266c]
mov edx, dword [esp + 0x34]
fstp dword [esp + 0x64]
fild dword [esp + 0x34]
push ebx
push ebx
push ebx
push 2
test edx, edx
jge 0x49b464
fadd dword [0x51266c]
sub esp, 0x20
fstp dword [esp + 0x1c]
mov dword [esp + 0x68], edi
fild dword [esp + 0x68]
test edi, edi
jge 0x49b47d
fadd dword [0x51266c]
mov eax, dword [ebp + 4]
fstp dword [esp + 0x18]
fldz
mov ecx, dword [esp + 0x48]
fst dword [esp + 0x14]
fst dword [esp + 0x10]
fld dword [esp + 0x94]
fstp dword [esp + 0xc]
fld dword [esp + 0x90]
fstp dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x49b4be
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x14]
push esi
call fcn.0049c2c0
add esp, 4
mov dword [esp + 0x24], eax
cmp esi, ebx
je 0x49b4dd
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov edx, dword [esp + 0x7c]
push esi
push edi
push ebx
push ebx
add edx, 0x44
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x49b51d
mov ecx, esi
mov edx, edi
mov esi, eax
call fcn.00401f90
mov dword [esp + 0x28], eax
jmp 0x49b523
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x49b53d
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x74], 1
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b566
mov dword [ebp + 8], eax
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b587
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b5a4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b5c1
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x34]
fild dword [esp + 0x34]
test ecx, ecx
jge 0x49b5d3
fadd dword [0x51266c]
fstp dword [esp + 0x60]
mov dword [esp + 0x3c], esi
fild dword [esp + 0x3c]
test esi, esi
jge 0x49b5e9
fadd dword [0x51266c]
mov edx, dword [esp + 0x38]
fstp dword [esp + 0x64]
fild dword [esp + 0x38]
push ebx
push ebx
push ebx
push 2
test edx, edx
jge 0x49b604
fadd dword [0x51266c]
sub esp, 0x20
fstp dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
fild dword [esp + 0x6c]
test edi, edi
jge 0x49b61d
fadd dword [0x51266c]
mov eax, dword [ebp + 4]
fstp dword [esp + 0x18]
fldz
mov ecx, dword [esp + 0x44]
fst dword [esp + 0x14]
fst dword [esp + 0x10]
fld dword [esp + 0x94]
fstp dword [esp + 0xc]
fld dword [esp + 0x90]
fstp dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x49b65e
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b677
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x20]
mov esi, 0x64
cmp ecx, dword [esp + 0x34]
jbe 0x49b84b
mov eax, dword [ebp + 4]
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b6a3
mov dword [ebp + 8], eax
cmp dword [esp + 0x34], esi
jae 0x49b6b6
mov esi, ebp
call fcn.00401490
mov dword [esp + 0x18], eax
jmp 0x49b6ba
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x24]
movzx eax, dl
mov ecx, edx
mov edi, eax
shr ecx, 8
or edi, 0xffffff00
movzx ecx, cl
shl eax, 8
shr edx, 0x10
shl edi, 8
movzx edx, dl
or eax, ecx
or edi, ecx
shl eax, 8
or eax, edx
shl edi, 8
or edi, edx
lea edx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
push edx
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b70c
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b731
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
mov dword [esp + 0x50], ecx
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x34]
lea esi, [esp + 0x60]
mov dword [esp + 0x58], ebx
call fcn.0049d470
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b775
mov dword [ebp + 8], eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x34]
jb 0x49b788
mov esi, ebp
call fcn.004014c0
mov esi, eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b7a1
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x5c]
push esi
push ecx
push ebx
sub eax, ecx
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x49b7c6
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x4c]
mov dword [esp + 0x38], edi
call fcn.00405490
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b7f0
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b80d
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x18]
sub eax, esi
mov esi, dword [esp + 0x54]
push eax
push ebx
push ecx
push esi
push edx
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x49b836
mov dword [esp + 0x48], eax
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x5c]
push eax
call sub.gdiplus.dll_GdipDeleteBrush
mov esi, 0x64
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b864
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x34]
jbe 0x49ba2e
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b88b
mov dword [ebp + 8], eax
cmp dword [esp + 0x34], esi
jae 0x49b89e
mov esi, ebp
call fcn.004014c0
mov dword [esp + 0x18], eax
jmp 0x49b8a2
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x24]
movzx eax, dl
mov ecx, edx
mov edi, eax
shr ecx, 8
or edi, 0xffffff00
movzx ecx, cl
shl eax, 8
shr edx, 0x10
shl edi, 8
movzx edx, dl
or eax, ecx
or edi, ecx
shl eax, 8
or eax, edx
shl edi, 8
or edi, edx
lea edx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
push edx
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b8f4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b919
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ecx
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x34]
lea esi, [esp + 0x60]
mov dword [esp + 0x44], ebx
call fcn.0049d470
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x49b95d
mov dword [ebp + 8], eax
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x34]
jb 0x49b970
mov esi, ebp
call fcn.00401490
mov esi, eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b989
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x5c]
push ecx
push esi
sub eax, ecx
push eax
mov eax, dword [esp + 0x20]
push ebx
push edx
push eax
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x49b9ae
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
lea esi, [esp + 0x4c]
mov dword [esp + 0x38], edi
call fcn.00405490
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b9d8
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x49b9f5
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, esi
mov esi, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
push ebx
push esi
push ecx
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, ebx
je 0x49ba1e
mov dword [esp + 0x48], eax
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x5c]
push edx
call sub.gdiplus.dll_GdipDeleteBrush
mov esi, dword [esp + 0x7c]
mov ecx, dword [esi + 0x70]
cmp ecx, ebx
je 0x49ba41
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esi + 0x74]
cmp ecx, ebx
je 0x49ba50
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [esp + 0x28]
mov edi, esi
mov dword [edi + 0x70], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
fld1
mov dword [edi + 0x74], eax
fstp dword [edi + 0x54]
mov eax, edi
call fcn.0049d230
call fcn.0049b130
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x49ba8b
mov eax, dword [eax + 4]
jmp 0x49ba8d
xor eax, eax
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4