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

Disassembly:
push 0xffffffffffffffff
push 0x510aaf
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x26c]
mov esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x5c], ecx
xor ebx, ebx
mov dword [esp + 0x260], ebx
call fcn.004c6f68
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
push eax
lea ecx, [esp + 0x200]
mov dword [esp + 0x20], eax
call fcn.004ca698
push 0x10
mov byte [esp + 0x264], 1
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x260], 2
je 0x4a7a34
mov ecx, eax
call fcn.004c9fd9
mov ebp, eax
jmp 0x4a7a36
xor ebp, ebp
mov byte [esp + 0x260], 1
mov ecx, dword [esp + 0x200]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call fcn.004ca4e7
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], vtable.CBitmap.0
push 0x18
mov byte [esp + 0x264], 3
mov edx, dword [ebp + 4]
push 0x80
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x30]
call fcn.004ca7ae
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.004ca833
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], vtable.CFont.0
push 0x3c
lea edx, [esp + 0xd8]
push ebx
push edx
mov byte [esp + 0x26c], 4
call fcn.004e9730
add esp, 0xc
push str.Courier
lea eax, [esp + 0xf4]
push eax
mov dword [esp + 0xdc], 0x12
mov dword [esp + 0xec], 0x12c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xd4]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x48]
call fcn.004ca7ae
mov edx, dword [ebp]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call edx
mov dword [esp + 0x60], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
push ebx
mov ecx, ebp
call edx
push 0xffffff
lea eax, [esp + 0x8c]
push eax
mov ecx, ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], 0x80
mov dword [esp + 0x9c], 0x18
call fcn.004caddc
mov ecx, dword [esp + 0x268]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebp]
push ebx
lea edi, [esp + 0x8c]
push edi
push eax
mov eax, dword [edx + 0x68]
push ecx
mov ecx, ebp
call eax
xor edi, edi
mov dword [esp + 0x14], esi
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [ebp + 4]
push edi
push esi
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, ebx
mov eax, dword [esp + 0x14]
sete dl
mov byte [eax + esi], dl
add esi, 1
cmp esi, 0x80
jl 0x4a7b80
add dword [esp + 0x14], 0x80
add edi, 1
cmp edi, 0x18
jl 0x4a7b78
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1a8]
call fcn.004ca698
push 0x10
mov byte [esp + 0x264], 5
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x260], 6
je 0x4a7bf1
mov ecx, eax
call fcn.004c9fd9
mov edi, eax
jmp 0x4a7bf3
xor edi, edi
mov byte [esp + 0x260], 5
mov edx, dword [esp + 0x1a8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004ca4e7
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], vtable.CBitmap.0
push 0x18
mov byte [esp + 0x264], 7
mov eax, dword [edi + 4]
push 0x160
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x50]
call fcn.004ca7ae
mov ecx, dword [esp + 0x50]
mov edx, dword [edi + 4]
push ecx
push edx
call fcn.004ca833
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.CFont.0
push 0x3c
lea eax, [esp + 0x9c]
push ebx
push eax
mov byte [esp + 0x26c], 8
call fcn.004e9730
add esp, 0xc
push str.Arial
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + 0xa0], 0x12
mov dword [esp + 0xb0], 0x384
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x28]
call fcn.004ca7ae
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call edx
mov dword [esp + 0x64], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push ebx
mov ecx, edi
call edx
push 0xffffff
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0x160
mov dword [esp + 0x8c], 0x18
call fcn.004caddc
mov ecx, dword [esp + 0x268]
mov eax, dword [ecx - 0xc]
mov edx, dword [edi]
push ebx
lea esi, [esp + 0x7c]
push esi
push eax
mov eax, dword [edx + 0x68]
push ecx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
xor esi, esi
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 4]
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x18]
cmp eax, ebx
sete cl
mov byte [esi + edx], cl
add esi, 1
cmp esi, 0x160
jl 0x4a7d34
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 0x160
add eax, 1
cmp eax, 0x18
mov dword [esp + 0x14], eax
jl 0x4a7d32
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x150]
call fcn.004ca698
push 0x10
mov byte [esp + 0x264], 9
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x260], 0xa
je 0x4a7db1
mov ecx, eax
call fcn.004c9fd9
mov esi, eax
jmp 0x4a7db3
xor esi, esi
mov byte [esp + 0x260], 9
mov ecx, dword [esp + 0x150]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004ca4e7
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], vtable.CBitmap.0
push 0x30
mov byte [esp + 0x264], 0xb
mov edx, dword [esi + 4]
push 0x160
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x40]
call fcn.004ca7ae
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.004ca833
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], vtable.CFont.0
push 0x3c
lea edx, [esp + 0x114]
push ebx
push edx
mov byte [esp + 0x26c], 0xc
call fcn.004e9730
add esp, 0xc
push str.Arial
lea eax, [esp + 0x130]
push eax
mov dword [esp + 0x118], 0x1f
mov dword [esp + 0x128], 0x384
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x38]
call fcn.004ca7ae
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push ebx
mov ecx, esi
call edx
push 0xffffff
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x160
mov dword [esp + 0x7c], 0x30
call fcn.004caddc
mov ecx, dword [esp + 0x268]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push ebx
lea ecx, [esp + 0x6c]
push ecx
push eax
mov eax, dword [esp + 0x274]
push eax
mov ecx, esi
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
jmp 0x4a7ef2
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 4]
push ecx
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x14]
test eax, eax
sete al
mov byte [ebx + ecx], al
add ebx, 1
cmp ebx, 0x160
jl 0x4a7ef2
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x160
add eax, 1
cmp eax, 0x30
mov dword [esp + 0x18], eax
jl 0x4a7ef0
mov edx, dword [ebp]
mov eax, dword [esp + 0x60]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebp
call edx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4a7f4b
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 4]
push eax
call fcn.004ca833
mov ecx, ebp
call fcn.004ca54b
lea ecx, [esp + 0x44]
call fcn.004ca801
lea ecx, [esp + 0x2c]
call fcn.004ca801
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push 1
mov ecx, ebp
call eax
mov edx, dword [edi]
mov eax, dword [esp + 0x64]
mov edx, dword [edx + 0x28]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4a7f93
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.004ca833
mov ecx, edi
call fcn.004ca54b
lea ecx, [esp + 0x24]
call fcn.004ca801
lea ecx, [esp + 0x4c]
call fcn.004ca801
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a7fda
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 4]
push eax
call fcn.004ca833
mov ecx, esi
call fcn.004ca54b
lea ecx, [esp + 0x34]
call fcn.004ca801
lea ecx, [esp + 0x3c]
call fcn.004ca801
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov byte [esp + 0x260], 0xb
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.004ca801
mov byte [esp + 0x260], 9
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
call fcn.004ca801
lea ecx, [esp + 0x14c]
mov byte [esp + 0x260], 8
call fcn.004ca6ec
mov byte [esp + 0x260], 7
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004ca801
mov byte [esp + 0x260], 5
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
call fcn.004ca801
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x260], 4
call fcn.004ca6ec
mov byte [esp + 0x260], 3
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.004ca801
mov byte [esp + 0x260], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.004ca801
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x260], 0
call fcn.004ca6ec
mov dword [esp + 0x260], 0xffffffff
mov eax, dword [esp + 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a80f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004e0b83
add esp, 0x250
ret