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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d0bec
push eax
mov dword fs:[0], esp
sub esp, 0xde4
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x1c], ebx
je 0x4e9a4e
cmp dword [esp + 0xe18], 0xffffffff
jne 0x4e8f7a
mov eax, dword [esp + 0xe20]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esp + 0xe14]
push eax
mov eax, dword [esp + 0xe14]
push ecx
mov ecx, dword [esp + 0xe14]
push edx
mov edx, dword [esp + 0xe14]
push eax
mov eax, dword [esp + 0xe14]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004e6f00
jmp 0x4e9a50
mov edi, dword [esp + 0xe1c]
mov ebp, dword [esp + 0xe20]
cmp edi, ebx
jne 0x4e991c
cmp ebp, ebx
jne 0x4e991c
cmp word [esi + 0x2e], 8
jne 0x4e921c
mov ecx, esi
call fcn.004e7360
xor edi, edi
xor ebp, ebp
mov di, word [eax + 2]
mov dword [esp + 0x34], ebp
cmp edi, ebx
jle 0x4e8ff0
add eax, 5
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + 1]
mov dl, byte [eax - 1]
mov cl, byte [eax]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0xe18]
cmp ecx, edx
je 0x4e8fe7
inc ebp
add eax, 4
cmp ebp, edi
jl 0x4e8fbd
mov dword [esp + 0x34], ebp
jmp 0x4e8ff0
cmp ebp, 0xffffffff
mov dword [esp + 0x34], ebp
jne 0x4e9026
mov eax, dword [esp + 0xe14]
mov ecx, dword [esp + 0xe10]
mov edx, dword [esp + 0xe0c]
push ebx
push ebx
push eax
mov eax, dword [esp + 0xe14]
push ecx
mov ecx, dword [esp + 0xe14]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004e6f00
jmp 0x4e9a50
lea ecx, [esp + 0x974]
call fcn.004e5b80
lea ecx, [esp + 0x4f4]
mov dword [esp + 0xdfc], 1
call fcn.004e5b80
mov ecx, esi
mov byte [esp + 0xdfc], 2
call fcn.004e7360
mov edi, dword [esp + 0xe10]
push eax
push ebx
mov ebx, dword [esp + 0xe1c]
push 8
push 1
push ebx
push edi
lea ecx, [esp + 0x98c]
call fcn.004e6670
mov ecx, esi
call fcn.004e7360
push eax
push 0
push 8
push 1
push ebx
push edi
lea ecx, [esp + 0x50c]
call fcn.004e6670
push 1
push 0
lea ecx, [esp + 0x4fc]
call fcn.004e70d0
xor edx, edx
xor ecx, ecx
push edx
push edx
push ebx
push edi
push edx
push ecx
push eax
mov ecx, esi
call fcn.004e6f00
push 0
lea ecx, [esp + 0x4f8]
call fcn.004e71a0
push 1
push 0
lea ecx, [esp + 0x97c]
call fcn.004e70d0
mov ebp, dword [esp + 0xe04]
mov esi, eax
test ebp, ebp
mov dword [esp + 0x6c], esi
jne 0x4e90eb
xor eax, eax
jmp 0x4e90ee
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0xe0c]
mov ecx, dword [esp + 0xe08]
push 0xcc0020
push edx
mov edx, dword [esi + 4]
push ecx
push eax
push ebx
push edi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [edi*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
test ebx, ebx
jle 0x4e91a8
mov edx, dword [esp + 0x93c]
mov ecx, dword [esp + 0xdbc]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], ebx
test edi, edi
jle 0x4e9186
mov esi, dword [esp + 0x20]
mov dword [esp + 0x40], edi
sub esi, edx
mov cl, byte [edx]
mov ebp, ecx
and ebp, 0xff
cmp ebp, dword [esp + 0x34]
je 0x4e9172
mov byte [esi + edx], cl
mov ecx, dword [esp + 0x40]
inc edx
dec ecx
mov dword [esp + 0x40], ecx
jne 0x4e915f
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
add edx, eax
add ecx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x38], ecx
jne 0x4e9151
mov ebp, dword [esp + 0xe04]
test esi, esi
jne 0x4e91b0
xor eax, eax
jmp 0x4e91b3
mov eax, dword [esi + 4]
mov edx, dword [esp + 0xe0c]
mov ecx, dword [ebp + 4]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0xe18]
push ebx
push edi
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
lea ecx, [esp + 0x978]
call fcn.004e71a0
lea ecx, [esp + 0x4f4]
mov byte [esp + 0xdfc], 1
call fcn.004e5c70
lea ecx, [esp + 0x974]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.004e5c70
mov eax, 1
jmp 0x4e9a50
lea ecx, [esp + 0x24]
call fcn.0059b3be
lea ecx, [esp + 0x44]
mov dword [esp + 0xdfc], 3
call fcn.0059b3be
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b3be
mov edi, dword [esp + 0xe04]
mov byte [esp + 0xdfc], 5
cmp edi, ebx
jne 0x4e9261
xor eax, eax
jmp 0x4e9264
mov eax, dword [edi + 4]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebp
push eax
lea ecx, [esp + 0x48]
call fcn.0059b475
cmp eax, ebx
jne 0x4e92b6
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
cmp edi, ebx
jne 0x4e92be
xor eax, eax
jmp 0x4e92c1
mov eax, dword [edi + 4]
push eax
call ebp
push eax
lea ecx, [esp + 0x28]
call fcn.0059b475
cmp eax, ebx
jne 0x4e930d
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
cmp edi, ebx
jne 0x4e9315
xor eax, eax
jmp 0x4e9318
mov eax, dword [edi + 4]
push eax
call ebp
push eax
lea ecx, [esp + 0x60]
call fcn.0059b475
cmp eax, ebx
jne 0x4e9364
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], vtable.CBitmap.0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov byte [esp + 0xe08], 6
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.0059c0b2
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b5b6
lea ebp, [esi + 0x454]
mov dword [esp + 0x34], eax
test ebp, ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], ebp
je 0x4e9435
mov eax, dword [ebp + 4]
test eax, eax
je 0x4e9435
push 0
push ebp
lea ecx, [esp + 0x2c]
call fcn.0059b694
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.GDI32.dll_RealizePalette]
push ecx
mov dword [esp + 0x3c], eax
call ebx
push 0
push ebp
lea ecx, [esp + 0x64]
call fcn.0059b694
mov edx, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
push edx
call ebx
push 0
push ebp
lea ecx, [esp + 0x4c]
call fcn.0059b694
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push eax
call ebx
push 0
push ebp
mov ecx, edi
call fcn.0059b694
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], eax
push ecx
call ebx
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x60]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x60]
mov ebp, eax
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x5c]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push 0
push 0
push ecx
call ebx
test ebp, ebp
je 0x4e9487
mov edx, dword [esp + 0x60]
push ebp
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CBitmap.0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 0
push 1
push 1
push eax
push ecx
mov byte [esp + 0xe10], 7
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.0059c0b2
test eax, eax
jne 0x4e952b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xdfc], 8
call fcn.0059c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xdfc], 9
call fcn.0059c109
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.0059b5b6
mov ebp, dword [esp + 0xe18]
lea ecx, [esp + 0x24]
push ebp
mov dword [esp + 0x70], eax
call fcn.0059b6b6
push ebp
lea ecx, [esp + 0x48]
call fcn.0059b6b6
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebp
push 0
push 0
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push 0
push 0
push ecx
call ebx
test eax, eax
jne 0x4e95fc
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xdfc], 0xa
call fcn.0059c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xdfc], 0xb
call fcn.0059c109
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
push 0x2000000
lea ecx, [esp + 0x28]
call fcn.0059b6b6
push 0x2ffffff
lea ecx, [esp + 0x28]
call fcn.0059b79d
mov ebp, dword [esp + 0x48]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x44]
neg eax
sbb eax, eax
push 0x8800c6
and eax, ebp
push 0
push 0
push eax
push ecx
push edx
mov edx, dword [esp + 0x40]
push 0
push 0
push edx
call ebx
test eax, eax
jne 0x4e96b1
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xdfc], 0xc
call fcn.0059c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xdfc], 0xd
call fcn.0059c109
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
push 3
mov ecx, edi
call fcn.0059b76f
mov eax, dword [edi]
push 0x2ffffff
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [edi]
push 0x2000000
mov ecx, edi
call dword [edx + 0x30]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov ebx, dword [esp + 0x48]
lea eax, [esp + 0x44]
mov ebp, dword [esp + 0xe10]
push 0x8800c6
neg eax
sbb eax, eax
push ecx
mov ecx, dword [esp + 0xe10]
push edx
mov edx, dword [edi + 4]
and eax, ebx
mov ebx, dword [esp + 0xe20]
push 0
push 0
push eax
mov eax, dword [esp + 0xe24]
push ebx
push ebp
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
jne 0x4e978a
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xdfc], 0xe
call fcn.0059c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xdfc], 0xf
call fcn.0059c109
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
mov ecx, dword [esi + 0x28]
mov esi, dword [esi + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
push 0xee0086
push ecx
mov ecx, dword [esp + 0xe10]
push esi
sbb eax, eax
push 0
and eax, edx
mov edx, dword [edi + 4]
push 0
push eax
mov eax, dword [esp + 0xe24]
push ebx
push ebp
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
jne 0x4e9834
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xdfc], 0x10
call fcn.0059c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xdfc], 0x11
call fcn.0059c109
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
jmp 0x4e9a4e
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4e984a
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.0059b5b6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4e9860
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0059b5b6
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4e98ad
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4e98ad
mov ecx, dword [esp + 0x38]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.0059b694
mov edx, dword [esp + 0x3c]
push 0
push edx
lea ecx, [esp + 0x64]
call fcn.0059b694
mov eax, dword [esp + 0x40]
push 0
push eax
lea ecx, [esp + 0x4c]
call fcn.0059b694
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov ecx, edi
call fcn.0059b694
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0xdfc], 0x12
call fcn.0059c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0xdfc], 0x13
call fcn.0059c109
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdfc], 4
call fcn.0059b4f3
lea ecx, [esp + 0x44]
mov byte [esp + 0xdfc], 3
call fcn.0059b4f3
lea ecx, [esp + 0x24]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.0059b4f3
mov eax, 1
jmp 0x4e9a50
lea ecx, [esp + 0x74]
call fcn.004e5b80
cmp edi, ebx
mov dword [esp + 0xdfc], ebx
je 0x4e9937
mov edx, dword [edi]
mov edi, dword [edi + 4]
jmp 0x4e993b
xor edx, edx
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
je 0x4e995b
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
lea eax, [esp + 0x54]
jmp 0x4e9971
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
sub eax, edi
sub ecx, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x54]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
cmp ebp, ebx
mov dword [esp + 0x58], eax
jle 0x4e9a3a
cmp eax, ebx
jle 0x4e9a3a
xor edi, edi
xor ebx, ebx
mov di, word [esi + 0x2e]
mov bx, word [esi + 0x2c]
mov ecx, esi
call fcn.004e7360
mov ecx, dword [esp + 0x58]
push eax
push 0
push edi
push ebx
push ecx
push ebp
lea ecx, [esp + 0x8c]
call fcn.004e6670
push 1
push 0
lea ecx, [esp + 0x7c]
call fcn.004e70d0
xor edx, edx
lea edi, [esp + 0x6c]
push edx
xor ecx, ecx
push edi
push edx
push ecx
push eax
mov ecx, esi
call fcn.004e6d20
push 0
lea ecx, [esp + 0x78]
call fcn.004e71a0
mov edx, dword [esp + 0xe18]
mov eax, dword [esp + 0xe14]
mov ecx, dword [esp + 0xe10]
push 0
push 0
push edx
mov edx, dword [esp + 0xe18]
push eax
mov eax, dword [esp + 0xe18]
push ecx
mov ecx, dword [esp + 0xe18]
push edx
push eax
push ecx
lea ecx, [esp + 0x94]
call fcn.004e8f00
lea ecx, [esp + 0x74]
mov esi, eax
mov dword [esp + 0xdfc], 0xffffffff
call fcn.004e5c70
mov eax, esi
jmp 0x4e9a50
lea ecx, [esp + 0x74]
mov dword [esp + 0xdfc], 0xffffffff
call fcn.004e5c70
xor eax, eax
mov ecx, dword [esp + 0xdf4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdf0
ret 0x20