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

Disassembly:
push 0xffffffffffffffff
push 0x5ee92b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x675518]
mov eax, dword [0x675444]
dec ecx
push edi
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xfffffffe
push 0
add ecx, 2
push ecx
lea ecx, [esp + 0x78]
call fcn.005c551c
mov eax, dword [0x675518]
mov edx, dword [0x675448]
dec eax
push edx
neg eax
sbb eax, eax
push 0
and al, 0xfe
lea ecx, [esp + 0x60]
add eax, 2
mov dword [esp + 0xd8], 0
push eax
call fcn.005c551c
mov edi, dword [esp + 0xd8]
mov ebx, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov byte [esp + 0xd4], 1
mov ecx, dword [edi + 8]
push ecx
call ebx
push eax
call fcn.005c549a
mov ecx, dword [esi + 0x54]
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0x58], eax
call fcn.004b7f10
mov eax, 6
lea ecx, [esp + 0xb0]
mov edx, 4
mov ebp, dword [ecx]
add ecx, 4
add eax, ebp
dec edx
jne 0x4b8279
add eax, 2
mov ecx, dword [esp + 0xe4]
imul eax, dword [0x675b18]
mov edx, dword [0x6754c8]
add ecx, edx
add eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
mov eax, dword [0x675b1c]
push eax
push 0xb
call fcn.00501cf0
mov ecx, dword [0x6754d4]
add esp, 8
mov dword [esp + 0x68], eax
lea edx, [eax + ecx*2 + 1]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x7c], edx
call fcn.004f0470
mov dword [esp + 0x3c], eax
mov eax, dword [0x6707bc]
mov dword [esp + 0x14], eax
mov ecx, dword [0x6753f0]
mov byte [esp + 0xd0], 2
push ecx
lea ecx, [esp + 0x50]
call fcn.005c556c
mov edx, dword [0x6753d8]
lea ecx, [esp + 0x40]
push edx
mov byte [esp + 0xd4], 3
call fcn.005c556c
mov eax, dword [0x6753d4]
lea ecx, [esp + 0x60]
push eax
mov byte [esp + 0xd4], 4
call fcn.005c556c
mov ecx, dword [edi + 8]
push 2
push ecx
mov byte [esp + 0xd8], 5
call ebx
push eax
call fcn.005c549a
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x90]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, 0x675360
call fcn.00504db0
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0xdc]
test ebx, ebx
lea edx, [ecx + eax + 0x16]
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x90], edx
mov ebp, dword [eax]
jne 0x4b83b5
mov ecx, dword [0x6754cc]
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x98], ebp
lea edx, [ecx + ebp]
mov ecx, dword [esp + 0xf4]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0xa8], edx
call fcn.004ba530
add ebp, dword [0x6754cc]
mov eax, 1
cmp ebx, eax
mov dword [esp + 0x2c], eax
jle 0x4b83cb
mov eax, 2
mov dword [esp + 0x2c], eax
cmp ebx, 3
jle 0x4b83d8
lea edx, [eax + ebx - 3]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
cmp ebx, eax
jge 0x4b8b2b
mov eax, dword [esp + 0xec]
cmp ebp, dword [eax + 0xc]
jg 0x4b8c16
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], ebp
lea edx, [ecx + ebp]
mov ecx, dword [esp + 0xe0]
add eax, ecx
mov ecx, esi
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
call fcn.004c7620
mov ebx, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.CRgn.0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa0], edx
lea edx, [esp + 0xa0]
inc eax
push edx
mov byte [esp + 0xd4], 0xb
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x24]
call fcn.005c54af
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xf0]
test ecx, ecx
jne 0x4b8498
xor edx, edx
jmp 0x4b849b
mov edx, dword [ecx + 4]
push 4
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [edi]
cmp ebx, 1
jne 0x4b84ce
mov eax, dword [0x6753ec]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [0x6753f0]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
lea ecx, [esp + 0x58]
jmp 0x4b8503
mov eax, dword [0x6753c8]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b84eb
cmp eax, 2
mov eax, 7
jne 0x4b84f0
mov eax, 6
mov eax, dword [eax*4 + 0x6753bc]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x2c]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.005c4b3b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4b854c
cmp eax, 2
je 0x4b854c
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edx + 4]
jl 0x4b8548
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebp
push edi
mov ecx, esi
call fcn.0049f4c0
mov eax, dword [esp + 0x10]
inc dword [esp + 0x2c]
mov edx, dword [esp + 0xec]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [edx + 4]
jl 0x4b8ab5
cmp eax, 1
je 0x4b8573
cmp eax, 3
je 0x4b8573
cmp dword [0x675528], 1
jne 0x4b858f
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
push ebp
push ecx
push edx
push edi
mov ecx, esi
call fcn.004bc370
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6754d4]
cmp eax, 1
lea edx, [ecx + ebp + 1]
mov dword [esp + 0x74], edx
jne 0x4b85ad
mov eax, dword [esi + 0x54]
test byte [eax + 8], 4
jne 0x4b85cd
jmp 0x4b85e4
cmp eax, 3
jl 0x4b85e4
mov ecx, dword [esp + 0x10]
push 0
add ecx, 0xfffffffd
push ecx
mov ecx, dword [esi + 0x54]
add ecx, 0xc
call fcn.004f4110
test byte [eax + 5], 4
je 0x4b85e4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xf4]
add edx, eax
push edx
call fcn.00491be0
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b861d
cmp dword [0x675528], 1
jne 0x4b861d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.004bc450
mov edx, dword [esp + 0x18]
mov ecx, dword [0x675b18]
add ebp, ecx
mov eax, dword [esp + edx*4 + 0xb0]
mov edx, dword [esp + 0xec]
imul eax, ecx
add eax, ebp
cmp ebp, dword [edx + 8]
mov dword [esp + 0x28], eax
jg 0x4b8a96
add ecx, eax
cmp ecx, dword [edx]
jl 0x4b8a96
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
lea eax, [esp + 0x8c]
push ebp
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [esp + 0x10], 1
jg 0x4b889b
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b86e3
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4b86b5
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4b86a0
mov eax, dword [0x66da58]
jmp 0x4b86ba
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x4b86ae
mov eax, dword [0x66da54]
jmp 0x4b86ba
mov eax, dword [0x66da64]
jmp 0x4b86ba
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
test ebx, ebx
jne 0x4b880c
cmp dword [esp + 0x10], 1
jne 0x4b880c
mov edx, dword [edi]
mov eax, dword [0x675478]
jmp 0x4b8806
cmp eax, 1
jne 0x4b8736
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x54]
test eax, eax
jne 0x4b8722
mov eax, dword [ecx + 0x44]
test eax, eax
je 0x4b870e
mov eax, dword [0x66da5c]
lea ecx, [esp + 0x14]
push eax
call fcn.005bc5aa
jmp 0x4b880c
mov eax, dword [0x66da60]
lea ecx, [esp + 0x14]
push eax
call fcn.005bc5aa
jmp 0x4b880c
call fcn.004f04d0
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
jmp 0x4b880c
cmp eax, 2
mov eax, dword [esp + 0x10]
jne 0x4b87d9
test eax, eax
jne 0x4b876a
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0x44]
test eax, eax
mov eax, dword [0x66da70]
jne 0x4b875b
mov eax, dword [0x66da60]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
jmp 0x4b880c
mov eax, dword [esi + 0x54]
test byte [eax + 8], 1
je 0x4b880c
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4b880c
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, ebx
lea ecx, [esp + 0x20]
neg edx
sbb edx, edx
push eax
and edx, 0xffffffe1
push ecx
mov ecx, dword [esp + 0x70]
add edx, 0x2b
push 0x682610
mov eax, dword [edx*4 + 0x6753bc]
push eax
lea eax, [ecx - 0xb]
cdq
sub eax, edx
mov edx, dword [esp + 0x84]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x38]
push eax
mov ecx, esi
lea eax, [edx + ebp - 0xb]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004cb630
jmp 0x4b880c
test eax, eax
jne 0x4b87e4
mov eax, dword [0x66da90]
jmp 0x4b87ea
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
test ebx, ebx
jne 0x4b880c
cmp dword [esp + 0x10], 1
jne 0x4b880c
mov edx, dword [edi]
mov eax, dword [0x67540c]
push eax
mov ecx, edi
call dword [edx + 0x30]
cmp dword [0x675528], 1
jne 0x4b883c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x675b18]
push edx
mov edx, dword [esp + 0x90]
add edx, ecx
push eax
push edx
push edi
mov ecx, esi
call fcn.004bc450
mov ebp, dword [esp + 0x10]
cmp ebp, 1
jne 0x4b8852
cmp dword [esp + 0x18], 2
je 0x4b8a92
jmp 0x4b8871
test ebp, ebp
jne 0x4b8871
mov ecx, ebx
mov eax, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 2
mov edx, dword [ecx*4 + 0x6753bc]
mov ecx, edi
push edx
call dword [eax + 0x30]
xor eax, eax
lea ecx, [esp + 0x20]
test ebp, ebp
sete al
push eax
lea edx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ebx
push ecx
push edx
jmp 0x4b8a8a
cmp dword [0x675528], 1
jne 0x4b88ca
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x675b18]
push ecx
mov ecx, dword [esp + 0x90]
add ecx, eax
push edx
push ecx
push edi
mov ecx, esi
call fcn.004bc450
cmp dword [esp + 0x10], 2
jne 0x4b895a
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4b88f5
mov edx, dword [esi + 0x54]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x4b88ee
mov eax, dword [0x66da7c]
jmp 0x4b8910
mov eax, dword [0x66da78]
jmp 0x4b8910
cmp ebp, 1
jne 0x4b8901
mov eax, dword [0x66da9c]
jmp 0x4b8910
mov eax, dword [0x66daa0]
cmp ebp, 2
je 0x4b8910
mov eax, dword [0x66da90]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
mov ecx, ebx
mov eax, dword [edi]
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 2
mov edx, dword [ecx*4 + 0x6753bc]
mov ecx, edi
push edx
call dword [eax + 0x30]
lea eax, [esp + 0x20]
push 1
lea ecx, [esp + 0x84]
push eax
mov eax, dword [esp + 0xe8]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebp
add eax, 2
jmp 0x4b8a89
mov ecx, dword [esp + 0x10]
push 0
add ecx, 0xfffffffd
push ecx
mov ecx, dword [esi + 0x54]
add ecx, 0xc
call fcn.004f4110
mov ebp, eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b89a5
mov eax, dword [esi + 0x54]
push ebp
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
call dword [edx + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
test ebx, ebx
jne 0x4b8a6b
mov eax, dword [edi]
mov ecx, dword [0x67545c]
jmp 0x4b8a65
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4b89f5
mov eax, dword [ebp]
mov ecx, dword [esi + 0x5c]
push 0xffff
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push eax
call fcn.00462b20
test eax, eax
jne 0x4b89e3
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x5c]
push edx
add ecx, 0x2f4
call fcn.004f1470
test ebx, ebx
jne 0x4b8a6b
mov eax, dword [edi]
mov ecx, dword [0x675460]
jmp 0x4b8a65
cmp eax, 2
jne 0x4b8a35
add ebp, 6
push ebp
call fcn.004eab40
add esp, 4
cmp eax, 1
jne 0x4b8a27
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.004ea880
add esp, 8
test ebx, ebx
jne 0x4b8a6b
mov eax, dword [edi]
mov ecx, dword [0x675464]
jmp 0x4b8a65
mov edx, dword [esp + 0x28]
mov eax, dword [0x675b18]
lea ebp, [edx + eax]
jmp 0x4b8a9f
mov eax, dword [esi + 0x54]
push ebp
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0xc]
call dword [edx + 0x14]
mov ebp, eax
push ebp
call fcn.00492830
add esp, 4
add eax, ebp
lea ecx, [esp + 0x14]
push eax
call fcn.005bc5aa
test ebx, ebx
jne 0x4b8a6b
mov eax, dword [edi]
mov ecx, dword [0x67540c]
push ecx
mov ecx, edi
call dword [eax + 0x30]
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x84]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x54]
push ecx
push ebx
push edx
push eax
push edi
mov ecx, esi
call fcn.004bc1a0
mov eax, dword [esp + 0x28]
mov ecx, dword [0x675b18]
lea ebp, [eax + ecx]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jle 0x4b85f0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
test ebx, ebx
je 0x4b8ac3
lea eax, [esp + 0x4c]
jmp 0x4b8ad4
test eax, eax
je 0x4b8ad0
cmp eax, 2
lea eax, [esp + 0x40]
jne 0x4b8ad4
lea eax, [esp + 0x60]
push eax
mov ecx, edi
call fcn.005c4b3b
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov byte [esp + 0xd0], 0xc
call fcn.005c5506
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
inc eax
mov byte [esp + 0xd0], 5
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4b83e8
cmp dword [0x675528], 1
jne 0x4b8b56
mov ecx, dword [esp + 0x30]
lea esi, [ebp - 1]
push esi
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, edi
call fcn.005c4f8b
mov eax, dword [esp + 0x38]
push esi
push eax
mov ecx, edi
call fcn.005c4fd7
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0x54]
push edx
mov dword [ecx], ebp
mov ecx, edi
call fcn.005c4b3b
mov eax, dword [esp + 0x78]
mov ecx, edi
push eax
call fcn.005c4b3b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 0xd
call fcn.005c5506
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xd0], 0xe
call fcn.005c5506
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 0xf
call fcn.005c5506
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 1
call fcn.005bc421
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xd0], 0x10
call fcn.005c5506
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0xd0], 0x11
call fcn.005c5506
xor eax, eax
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 0x24
mov eax, dword [esp + 0x54]
mov ecx, edi
push eax
call fcn.005c4b3b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x60]
mov byte [esp + 0xd0], 6
call fcn.005c5506
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0xd0], 7
call fcn.005c5506
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd0], 8
call fcn.005c5506
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 1
call fcn.005bc421
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xd0], 9
call fcn.005c5506
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0xd0], 0xa
call fcn.005c5506
mov eax, 1
jmp 0x4b8bfb