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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d0ae3
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
push edi
test eax, eax
je 0x4e896e
mov eax, dword [esp + 0x518]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x520]
jne 0x4e859c
mov ecx, dword [esp + 0x51c]
mov edx, dword [esp + 0x514]
push eax
mov eax, dword [esp + 0x514]
push ecx
mov ecx, dword [esp + 0x514]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004e6d20
jmp 0x4e8970
test eax, eax
je 0x4e85a7
mov esi, dword [eax]
mov ebp, dword [eax + 4]
jmp 0x4e85ad
mov ebp, dword [ebx + 0x28]
mov esi, dword [ebx + 0x24]
mov eax, dword [esp + 0x51c]
test eax, eax
je 0x4e85c7
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x4e85d7
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, ecx
mov dword [esp + 0x14], eax
mov ecx, eax
mov eax, dword [ebx + 0x24]
mov edi, eax
sub edi, ecx
cmp esi, edi
jle 0x4e85e6
sub eax, ecx
mov esi, eax
mov eax, dword [ebx + 0x28]
mov ecx, eax
sub ecx, edx
cmp ebp, ecx
jle 0x4e85f5
sub eax, edx
mov ebp, eax
cmp word [ebx + 0x2e], 8
jne 0x4e884c
mov ecx, ebx
call fcn.004e7360
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cx, word [eax + 2]
test ecx, ecx
jle 0x4e8653
lea edi, [eax + 5]
xor eax, eax
xor edx, edx
mov ah, byte [edi + 1]
mov dl, byte [edi - 1]
mov al, byte [edi]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x518]
cmp eax, edx
mov eax, dword [esp + 0x10]
je 0x4e864a
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e861c
jmp 0x4e8653
cmp eax, 0xffffffff
mov dword [esp + 0x74], eax
jne 0x4e8687
mov eax, dword [esp + 0x520]
mov ecx, dword [esp + 0x51c]
mov edx, dword [esp + 0x514]
push eax
mov eax, dword [esp + 0x514]
push ecx
mov ecx, dword [esp + 0x514]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004e6d20
jmp 0x4e8970
lea ecx, [esp + 0x7c]
call fcn.004e5b80
mov ecx, ebx
mov dword [esp + 0x504], 0
call fcn.004e7360
push eax
push 0
push 8
push 1
push ebp
push esi
lea ecx, [esp + 0x94]
call fcn.004e6670
push 1
push 0
lea ecx, [esp + 0x84]
call fcn.004e70d0
mov edi, eax
mov eax, dword [esp + 0x50c]
test eax, eax
mov dword [esp + 0x38], edi
je 0x4e86db
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x514]
mov ecx, dword [esp + 0x510]
push 0xcc0020
push edx
mov edx, dword [edi + 4]
push ecx
push eax
push ebp
push esi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esi*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x24]
sar ecx, 2
lea eax, [eax*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov edx, dword [ebx + 0x448]
sar eax, 2
mov dword [esp + 0x70], edx
xor edx, edx
shl ecx, 2
shl eax, 2
test ebp, ebp
mov dword [esp + 0x10], edx
jle 0x4e87ec
mov edi, ecx
neg edi
mov dword [esp + 0x34], edi
lea edi, [ebp - 1]
imul edi, ecx
add edi, dword [esp + 0x4c4]
mov dword [esp + 0x40], edi
mov ecx, dword [ebx + 0x28]
mov edi, dword [esp + 0x18]
sub ecx, edx
sub ecx, edi
mov edi, dword [esp + 0x70]
dec ecx
imul ecx, eax
add ecx, edi
mov edi, dword [esp + 0x14]
add ecx, edi
test esi, esi
jle 0x4e87d1
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], esi
sub edx, ecx
mov dword [esp + 0x3c], edx
mov dl, byte [ecx]
mov edi, dword [esp + 0x74]
mov byte [esp + 0x78], dl
and edx, 0xff
cmp edx, edi
je 0x4e87c1
mov edi, dword [esp + 0x3c]
mov dl, byte [esp + 0x78]
mov byte [ecx + edi], dl
mov edx, dword [esp + 0x5c]
inc ecx
dec edx
mov dword [esp + 0x5c], edx
jne 0x4e87a2
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
inc edx
add edi, ecx
cmp edx, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], edi
jl 0x4e8775
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4e87f3
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x514]
mov ecx, dword [esp + 0x50c]
mov eax, dword [esp + 0x510]
push 0xcc0020
push 0
push 0
push edi
push ebp
push esi
push edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
lea ecx, [esp + 0x80]
call fcn.004e71a0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x504], 0xffffffff
call fcn.004e5c70
mov eax, 1
jmp 0x4e8970
lea ecx, [esp + 0x1c]
call fcn.0059b3be
lea ecx, [esp + 0x44]
mov dword [esp + 0x504], 1
call fcn.0059b3be
lea ecx, [esp + 0x60]
mov byte [esp + 0x504], 2
call fcn.0059b3be
mov edi, dword [esp + 0x50c]
mov byte [esp + 0x504], 3
test edi, edi
jne 0x4e8891
xor eax, eax
jmp 0x4e8894
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call fcn.0059b475
test eax, eax
je 0x4e8938
test edi, edi
jne 0x4e88b5
xor eax, eax
jmp 0x4e88b8
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.0059b475
test eax, eax
je 0x4e8938
test edi, edi
jne 0x4e88d5
xor eax, eax
jmp 0x4e88d8
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x64]
call fcn.0059b475
test eax, eax
je 0x4e8938
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
mov eax, dword [edi + 4]
push ebp
push esi
push eax
mov byte [esp + 0x510], 4
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x30]
call fcn.0059c0b2
test eax, eax
jne 0x4e898b
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x504], 5
call fcn.0059c109
lea ecx, [esp + 0x60]
mov byte [esp + 0x504], 2
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0x504], 1
call fcn.0059b4f3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x504], 0xffffffff
call fcn.0059b4f3
xor eax, eax
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4f8
ret 0x18
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call fcn.0059b5b6
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0x454]
test eax, eax
je 0x4e8a24
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4e8a24
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.0059b694
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
lea eax, [ebx + 0x454]
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.0059b694
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
lea eax, [ebx + 0x454]
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.0059b694
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
lea eax, [ebx + 0x454]
push 0
push eax
mov ecx, edi
call fcn.0059b694
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x60]
push 0xcc0020
neg eax
sbb eax, eax
push edx
mov edx, dword [esp + 0x28]
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push ecx
push eax
push ebp
push esi
push 0
push 0
push edx
call ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], vtable.CBitmap.0
push 0
push 1
push 1
push ebp
push esi
mov byte [esp + 0x518], 6
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x58]
call fcn.0059c0b2
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.0059b5b6
mov ecx, dword [esp + 0x518]
mov dword [esp + 0x34], eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0059b6b6
mov edx, dword [esp + 0x518]
lea ecx, [esp + 0x44]
push edx
call fcn.0059b6b6
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x58]
push ebp
push esi
push 0
push 0
push eax
call ebx
push 0x2000000
lea ecx, [esp + 0x20]
call fcn.0059b6b6
push 0x2ffffff
lea ecx, [esp + 0x20]
call fcn.0059b79d
lea eax, [esp + 0x44]
neg eax
sbb eax, eax
mov ecx, dword [esp + 0x48]
push 0x8800c6
and eax, ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push eax
push ebp
push esi
push 0
push 0
push ecx
call ebx
mov edx, dword [edi]
push 0x2ffffff
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [edi]
push 0x2000000
mov ecx, edi
call dword [eax + 0x30]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x514]
push 0x8800c6
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [esp + 0x518]
push 0
push eax
mov eax, dword [edi + 4]
push ebp
push esi
push ecx
push edx
push eax
call ebx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x514]
push 0xee0086
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [esp + 0x518]
push 0
push eax
mov eax, dword [edi + 4]
push ebp
push esi
push ecx
push edx
push eax
call ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4e8bc9
mov ecx, dword [esp + 0x64]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4e8bdf
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.0059b5b6
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4e8bf5
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.0059b5b6
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x504], 7
call fcn.0059c109
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x504], 8
call fcn.0059c109
lea ecx, [esp + 0x60]
mov byte [esp + 0x504], 2
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0x504], 1
call fcn.0059b4f3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x504], 0xffffffff
call fcn.0059b4f3
mov eax, 1
jmp 0x4e8970