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

Disassembly:
push 0xffffffffffffffff
push 0x61a298
mov eax, dword fs:[0]
push eax
sub esp, 0xde4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0xdf8]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x1c], ebp
je 0x4e9721
cmp dword [esp + 0xe0c], 0xffffffff
jne 0x4e8f46
mov eax, dword [esp + 0xe24]
mov ecx, dword [esp + 0xe20]
mov edx, dword [esp + 0xe1c]
push eax
mov eax, dword [esp + 0xe1c]
push ecx
mov ecx, dword [esp + 0xe1c]
push edx
push eax
mov eax, dword [esp + 0xe20]
push ecx
mov ecx, dword [esp + 0xe1c]
mov edx, esi
call fcn.004e7870
jmp 0x4e9723
mov edi, dword [esp + 0xe10]
cmp edi, ebp
mov ebx, dword [esp + 0xe14]
jne 0x4e9605
cmp ebx, ebp
jne 0x4e9605
cmp word [esi + 0x2e], 8
jne 0x4e91c3
call fcn.004e7c90
movzx edi, word [eax + 2]
xor ecx, ecx
cmp edi, ebp
jle 0x4e8faf
add eax, 5
movzx ebx, byte [eax - 1]
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
shl edx, 8
or edx, ebx
cmp edx, dword [esp + 0xe0c]
je 0x4e8fa6
add ecx, 1
add eax, 4
cmp ecx, edi
jl 0x4e8f81
jmp 0x4e8faf
cmp ecx, 0xffffffff
mov dword [esp + 0x30], ecx
jne 0x4e8fe5
mov edx, dword [esp + 0xe24]
mov eax, dword [esp + 0xe20]
mov ecx, dword [esp + 0xe1c]
push edx
mov edx, dword [esp + 0xe1c]
push eax
push ecx
mov ecx, dword [esp + 0xe14]
push edx
push ebp
xor eax, eax
mov edx, esi
call fcn.004e7870
jmp 0x4e9723
lea eax, [esp + 0x974]
push eax
call fcn.004e6580
lea ecx, [esp + 0x4f4]
push ecx
mov dword [esp + 0xe04], 1
call fcn.004e6580
mov byte [esp + 0xe00], 2
call fcn.004e7c90
mov ebx, dword [esp + 0xe24]
push eax
push ebp
mov ebp, dword [esp + 0xe28]
push 8
push 1
push ebx
push ebp
lea edx, [esp + 0x98c]
push edx
call fcn.004e6fe0
call fcn.004e7c90
push eax
push 0
push 8
push 1
push ebx
push ebp
lea eax, [esp + 0x50c]
push eax
call fcn.004e6fe0
push 1
xor eax, eax
lea ecx, [esp + 0x4f8]
call fcn.004e7a20
push ebx
xor edx, edx
push ebp
push edx
mov ecx, eax
xor eax, eax
push eax
push edx
mov edx, esi
call fcn.004e7870
lea edi, [esp + 0x4f4]
call fcn.004e7af0
push 1
xor eax, eax
lea ecx, [esp + 0x978]
call fcn.004e7a20
mov edi, dword [esp + 0xe08]
test edi, edi
mov esi, eax
mov dword [esp + 0x28], esi
jne 0x4e90a8
xor eax, eax
jmp 0x4e90ab
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esp + 0xe18]
push 0xcc0020
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push ebx
push ebp
push 0
push 0
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
lea eax, [ebp*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
add eax, eax
add eax, eax
test ebx, ebx
jle 0x4e915e
mov ecx, dword [esp + 0x93c]
mov esi, dword [esp + 0xdbc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], ebx
test ebp, ebp
jle 0x4e913c
sub esi, ecx
mov dword [esp + 0x24], ebp
lea esp, [esp]
mov dl, byte [ecx]
movzx edi, dl
cmp edi, dword [esp + 0x30]
je 0x4e912e
mov byte [esi + ecx], dl
add ecx, 1
sub dword [esp + 0x24], 1
jne 0x4e9120
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esi, eax
add ecx, eax
sub dword [esp + 0x5c], 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
jne 0x4e910f
mov edi, dword [esp + 0xe08]
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esp + 0xe18]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [edi + 4]
push ebx
push ebp
push ecx
push edx
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
lea edi, [esp + 0x974]
call fcn.004e7af0
lea ecx, [esp + 0x4f4]
mov byte [esp + 0xe00], 1
call fcn.004e6680
mov ecx, edi
mov dword [esp + 0xe00], 0xffffffff
call fcn.004e6680
mov eax, 1
jmp 0x4e9723
lea ecx, [esp + 0x3c]
call fcn.00576f1a
lea ecx, [esp + 0x4c]
mov dword [esp + 0xe00], 3
call fcn.00576f1a
lea ecx, [esp + 0x64]
mov byte [esp + 0xe00], 4
call fcn.00576f1a
mov edi, dword [esp + 0xe08]
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0xe04], 5
call fcn.004520c0
test eax, eax
je 0x4e938f
push edi
lea ecx, [esp + 0x40]
call fcn.004520c0
test eax, eax
lea ecx, [esp + 0x64]
je 0x4e9393
push edi
call fcn.004520c0
test eax, eax
je 0x4e938f
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], vtable.CBitmap.0
mov byte [esp + 0xe00], 6
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push eax
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.00452090
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.00452060
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebp
lea ebp, [esi + 0x454]
test ebp, ebp
mov dword [esp + 0x30], eax
je 0x4e92ed
cmp dword [ebp + 4], 0
je 0x4e92ed
push 0
push ebp
lea ecx, [esp + 0x44]
call fcn.00577997
mov edx, dword [esp + 0x40]
mov ebx, dword [sym.imp.gdi32.dll_RealizePalette]
push edx
mov dword [esp + 0x60], eax
call ebx
push 0
push ebp
lea ecx, [esp + 0x6c]
call fcn.00577997
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
push eax
call ebx
push 0
push ebp
lea ecx, [esp + 0x54]
call fcn.00577997
mov ecx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x3c], eax
call ebx
push 0
push ebp
mov ecx, edi
call fcn.00577997
mov edx, dword [edi + 4]
push edx
mov dword [esp + 0x28], eax
call ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x68]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esi + 0x24]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x70]
push edx
mov ebx, eax
mov eax, dword [esi + 0x28]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00451ff0
test ebx, ebx
je 0x4e9331
mov eax, dword [esp + 0x68]
push ebx
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov ebx, vtable.CBitmap.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
push 0
push 1
mov byte [esp + 0xe08], 7
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 1
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004760a0
test eax, eax
lea ecx, [esp + 0x14]
jne 0x4e93ca
mov byte [esp + 0xe00], 6
mov dword [esp + 0x14], ebx
call fcn.00424fa0
mov byte [esp + 0xe00], 5
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
call fcn.00424fa0
lea ecx, [esp + 0x64]
mov byte [esp + 0xe00], 4
call fcn.0057762c
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe00], 3
call fcn.0057762c
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe00], 0xffffffff
call fcn.0057762c
jmp 0x4e9721
push ecx
lea ecx, [esp + 0x50]
call fcn.00452060
mov ebx, dword [esp + 0xe0c]
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], eax
call fcn.00576b92
push ebx
lea ecx, [esp + 0x50]
call fcn.00576b92
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x48]
push edx
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00451ff0
test eax, eax
jne 0x4e9445
mov byte [esp + 0xe00], 6
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00424fa0
mov byte [esp + 0xe00], 5
mov dword [esp + 0x1c], esi
jmp 0x4e9386
push 0x2000000
lea ecx, [esp + 0x40]
call fcn.00576b92
push 0x2ffffff
lea ecx, [esp + 0x40]
call fcn.00576c79
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push 0x8800c6
push 0
push 0
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00451ff0
test eax, eax
je 0x4e941a
push 3
mov ecx, edi
call fcn.00576c4b
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
push 0x2ffffff
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0x2000000
mov ecx, edi
call edx
mov eax, dword [esi + 0x24]
mov ebx, dword [esp + 0xe24]
mov ecx, dword [esp + 0xe1c]
mov edx, dword [esi + 0x28]
push 0x8800c6
push eax
mov eax, dword [esp + 0xe28]
push 0
push 0
push ebx
push eax
mov eax, dword [esp + 0xe30]
push ecx
push eax
push edi
lea eax, [esp + 0x70]
call fcn.00451fa0
test eax, eax
je 0x4e941a
mov edx, dword [esi + 0x28]
mov esi, dword [esi + 0x24]
mov ecx, dword [esp + 0xe20]
mov eax, dword [esp + 0xe1c]
push 0xee0086
push esi
push 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0xe30]
push eax
push ecx
push edi
lea eax, [esp + 0x60]
call fcn.00451fa0
test eax, eax
je 0x4e941a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e953c
push eax
lea ecx, [esp + 0x50]
call fcn.00452060
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e954e
push eax
lea ecx, [esp + 0x40]
call fcn.00452060
test ebp, ebp
je 0x4e9596
cmp dword [ebp + 4], 0
je 0x4e9596
mov edx, dword [esp + 0x5c]
push 0
push edx
lea ecx, [esp + 0x44]
call fcn.00577997
mov eax, dword [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x6c]
call fcn.00577997
mov ecx, dword [esp + 0x38]
push 0
push ecx
lea ecx, [esp + 0x54]
call fcn.00577997
mov edx, dword [esp + 0x24]
push 0
push edx
mov ecx, edi
call fcn.00577997
mov byte [esp + 0xe00], 6
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.00424fa0
mov byte [esp + 0xe00], 5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.00424fa0
lea ecx, [esp + 0x64]
mov byte [esp + 0xe00], 4
call fcn.0057762c
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe00], 3
call fcn.0057762c
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe00], 0xffffffff
call fcn.0057762c
mov eax, 1
jmp 0x4e9723
lea eax, [esp + 0x74]
push eax
call fcn.004e6580
cmp edi, ebp
mov dword [esp + 0xe00], ebp
je 0x4e9621
mov edx, dword [edi]
mov edi, dword [edi + 4]
jmp 0x4e9625
xor edx, edx
xor edi, edi
cmp ebx, ebp
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edi
je 0x4e963c
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [esp + 0x2c], edx
jmp 0x4e964a
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
sub eax, edi
sub ecx, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ebx, dword [eax]
cmp ebx, ebp
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jle 0x4e970d
cmp eax, ebp
jle 0x4e970d
movzx edi, word [esi + 0x2e]
movzx ebp, word [esi + 0x2c]
call fcn.004e7c90
push eax
mov eax, dword [esp + 0x30]
push 0
push edi
push ebp
push eax
push ebx
lea ecx, [esp + 0x8c]
push ecx
call fcn.004e6fe0
push 1
xor eax, eax
lea ecx, [esp + 0x78]
call fcn.004e7a20
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
xor eax, eax
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.004e76b0
lea edi, [esp + 0x74]
call fcn.004e7af0
mov edx, dword [esp + 0xe24]
mov eax, dword [esp + 0xe20]
mov ecx, dword [esp + 0xe1c]
push edx
mov edx, dword [esp + 0xe1c]
push eax
mov eax, dword [esp + 0xe14]
push ecx
mov ecx, dword [esp + 0xe14]
push edx
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.004e8ec0
mov ecx, edi
mov esi, eax
mov dword [esp + 0xe00], 0xffffffff
call fcn.004e6680
mov eax, esi
jmp 0x4e9723
lea ecx, [esp + 0x74]
mov dword [esp + 0xe00], 0xffffffff
call fcn.004e6680
xor eax, eax
mov ecx, dword [esp + 0xdf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdf0
ret 0x20