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

Disassembly:
push 0xffffffffffffffff
push 0x5110cf
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x27c]
mov eax, dword [esp + 0x284]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], edx
xor edi, edi
mov dword [esp + 0x270], edi
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 + 0x210]
mov dword [esp + 0x24], eax
call fcn.004ca698
push 0x10
mov byte [esp + 0x274], 1
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x270], 2
je 0x45384d
mov ecx, eax
call fcn.004c9fd9
mov ebp, eax
jmp 0x45384f
xor ebp, ebp
mov byte [esp + 0x270], 1
mov ecx, dword [esp + 0x210]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call fcn.004ca4e7
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], vtable.CBitmap.0
mov esi, dword [esp + 0x280]
push esi
mov byte [esp + 0x274], 3
mov edx, dword [ebp + 4]
push ebx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x38]
call fcn.004ca7ae
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.004ca833
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], vtable.CFont.0
push 0x3c
lea edx, [esp + 0xe8]
push edi
push edx
mov byte [esp + 0x27c], 4
call fcn.004e9730
add esp, 0xc
push str.Courier
lea eax, [esp + 0x104]
push eax
mov dword [esp + 0xec], 0x12
mov dword [esp + 0xfc], 0x12c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xe4]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x50]
call fcn.004ca7ae
mov edx, dword [ebp]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call edx
mov dword [esp + 0x68], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
push edi
mov ecx, ebp
call edx
push 0xffffff
lea eax, [esp + 0x8c]
push eax
mov ecx, ebp
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
call fcn.004caddc
mov ecx, dword [esp + 0x278]
mov eax, dword [ecx - 0xc]
mov edx, dword [ebp]
mov edx, dword [edx + 0x68]
push edi
lea ecx, [esp + 0x8c]
push ecx
push eax
mov eax, dword [esp + 0x284]
push eax
mov ecx, ebp
call edx
cmp esi, edi
mov dword [esp + 0x1c], edi
jle 0x4539dd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea esp, [esp]
test ebx, ebx
jle 0x4539c7
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 4]
push ecx
push edi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x18]
test eax, eax
sete al
mov byte [ecx + edi], al
add edi, 1
cmp edi, ebx
jl 0x4539a4
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 8
add eax, 1
xor edi, edi
cmp eax, esi
mov dword [esp + 0x1c], eax
jl 0x4539a0
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x1b8]
call fcn.004ca698
push 0x10
mov byte [esp + 0x274], 5
add ebx, ebx
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x270], 6
je 0x453a1b
mov ecx, eax
call fcn.004c9fd9
mov edi, eax
mov byte [esp + 0x270], 5
mov eax, dword [esp + 0x1b8]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004ca4e7
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], vtable.CBitmap.0
push esi
mov byte [esp + 0x274], 7
mov ecx, dword [edi + 4]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x58]
call fcn.004ca7ae
mov edx, dword [esp + 0x58]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.004ca833
mov dword [esp + 0x70], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CFont.0
push 0x3c
lea ecx, [esp + 0xac]
push 0
push ecx
mov byte [esp + 0x27c], 8
call fcn.004e9730
add esp, 0xc
push str.Arial
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0xb0], 0x12
mov dword [esp + 0xc0], 0x384
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0xa8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x30]
call fcn.004ca7ae
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
mov dword [esp + 0x74], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0
mov ecx, edi
call edx
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
push 0xffffff
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], esi
call fcn.004caddc
mov ecx, dword [esp + 0x278]
mov eax, dword [ecx - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0
lea ecx, [esp + 0x7c]
push ecx
push eax
mov eax, dword [esp + 0x284]
push eax
mov ecx, edi
call edx
test esi, esi
mov dword [esp + 0x18], 0
jle 0x453bac
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
xor esi, esi
test ebx, ebx
jle 0x453b8c
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 4]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x1c]
test eax, eax
sete al
mov byte [esi + ecx], al
add esi, 1
cmp esi, ebx
jl 0x453b69
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 8
add eax, 1
cmp eax, dword [esp + 0x280]
mov dword [esp + 0x18], eax
jl 0x453b63
mov esi, dword [esp + 0x280]
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x160]
call fcn.004ca698
lea eax, [esi + esi]
push 0x10
mov byte [esp + 0x274], 9
mov dword [esp + 0x64], eax
call fcn.004c1f9b
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x270], 0xa
je 0x453bf1
mov ecx, eax
call fcn.004c9fd9
mov esi, eax
jmp 0x453bf3
xor esi, esi
mov byte [esp + 0x270], 9
mov ecx, dword [esp + 0x160]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004ca4e7
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], vtable.CBitmap.0
mov edx, dword [esp + 0x60]
push edx
mov byte [esp + 0x274], 0xb
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x48]
call fcn.004ca7ae
mov ecx, dword [esp + 0x48]
mov edx, dword [esi + 4]
push ecx
push edx
call fcn.004ca833
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], vtable.CFont.0
push 0x3c
lea eax, [esp + 0x124]
push 0
push eax
mov byte [esp + 0x27c], 0xc
call fcn.004e9730
add esp, 0xc
push str.Arial
lea ecx, [esp + 0x140]
push ecx
mov dword [esp + 0x128], 0x1f
mov dword [esp + 0x138], 0x384
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x40]
call fcn.004ca7ae
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 0
mov ecx, esi
call edx
xor eax, eax
push 0xffffff
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, esi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], eax
call fcn.004caddc
mov edx, dword [esp + 0x278]
mov eax, dword [edx - 0xc]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x9c]
push ecx
push eax
mov eax, dword [esp + 0x284]
push eax
mov ecx, esi
mov edx, dword [edx + 0x68]
call edx
cmp dword [esp + 0x60], 0
mov dword [esp + 0x1c], 0
jle 0x453da3
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
test ebx, ebx
mov dword [esp + 0x18], 0
jle 0x453d8d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov edx, dword [esp + 0x20]
test eax, eax
mov eax, dword [esp + 0x18]
sete cl
mov byte [eax + edx], cl
add eax, 1
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x453d5e
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], 0x10
add eax, 1
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
jl 0x453d52
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, ebp
call edx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x453dbd
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 + 0x4c]
call fcn.004ca801
lea ecx, [esp + 0x34]
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 + 0x74]
mov edx, dword [edx + 0x28]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x453e05
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 + 0x2c]
call fcn.004ca801
lea ecx, [esp + 0x54]
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 + 0x28]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x453e4c
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 + 0x3c]
call fcn.004ca801
lea ecx, [esp + 0x44]
call fcn.004ca801
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov byte [esp + 0x270], 0xb
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
call fcn.004ca801
mov byte [esp + 0x270], 9
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call fcn.004ca801
lea ecx, [esp + 0x15c]
mov byte [esp + 0x270], 8
call fcn.004ca6ec
mov byte [esp + 0x270], 7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.004ca801
mov byte [esp + 0x270], 5
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], esi
call fcn.004ca801
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x270], 4
call fcn.004ca6ec
mov byte [esp + 0x270], 3
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], esi
call fcn.004ca801
mov byte [esp + 0x270], 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.004ca801
lea ecx, [esp + 0x20c]
mov byte [esp + 0x270], 0
call fcn.004ca6ec
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x453f67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004e0b83
add esp, 0x260
ret