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

Disassembly:
push 0xffffffffffffffff
push 0x5eeb7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
mov ebx, dword [esp + 0xd0]
push ebp
push esi
mov eax, dword [ebx + 0x1c]
push edi
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4bb19f
mov ecx, dword [0x675518]
inc eax
dec ecx
mov dword [esp + 0x68], eax
mov eax, dword [0x675444]
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xfffffffe
push 0
add ecx, 2
push ecx
lea ecx, [esp + 0x68]
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 + 0x74]
add eax, 2
mov dword [esp + 0xd8], 0
push eax
call fcn.005c551c
mov esi, dword [esp + 0xd8]
mov edi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 1
mov byte [esp + 0xd4], 1
mov ecx, dword [esi + 8]
push ecx
call edi
push eax
call fcn.005c549a
lea edx, [esp + 0xb0]
mov ecx, ebx
push edx
mov dword [esp + 0x44], eax
call fcn.004ef870
mov eax, 8
lea ecx, [esp + 0xb0]
mov edx, 5
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec edx
jne 0x4ba9f1
lea ebp, [eax + 2]
mov ecx, dword [esp + 0xe8]
imul ebp, dword [0x675b18]
mov ebx, dword [0x6754c8]
mov eax, dword [0x675b1c]
add ecx, ebx
mov dword [esp + 0x2c], 0xb
add ebp, ecx
cmp eax, 0xb
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x38], ebp
jl 0x4baa37
mov dword [esp + 0x2c], eax
mov eax, dword [0x6754d4]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + eax*2 + 1]
mov eax, dword [0x6707bc]
mov dword [esp + 0x74], edx
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 [0x6753e8]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0xd4], 3
call fcn.005c556c
mov eax, dword [0x6753e4]
lea ecx, [esp + 0x54]
push eax
mov byte [esp + 0xd4], 4
call fcn.005c556c
mov ecx, dword [esi + 8]
push 2
push ecx
mov byte [esp + 0xd8], 5
call edi
push eax
call fcn.005c549a
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x80]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, 0x675360
call fcn.00504db0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0xec]
mov ebx, dword [esp + 0xe0]
mov edi, dword [ecx]
lea eax, [edx + eax + 0x16]
test ebx, ebx
mov dword [esp + 0x80], eax
jne 0x4bab31
mov edx, dword [0x6754cc]
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [edi + edx]
mov edx, dword [esp + 0xf8]
push edx
push esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], eax
call fcn.004ba530
add edi, dword [0x6754cc]
jmp 0x4bab48
cmp ebx, 1
jle 0x4bab48
mov eax, dword [esp + 0xfc]
lea ecx, [eax + ebx - 1]
mov dword [esp + 0xfc], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], ebx
cmp ebx, eax
jge 0x4bb0d2
mov edx, dword [esp + 0xf0]
cmp edi, dword [edx + 0xc]
jg 0x4bb1bc
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x3c], edi
lea ebp, [edi + eax]
lea eax, [ebx + ecx]
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x80], eax
call fcn.004c7620
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CRgn.0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0xe8]
lea ecx, [esp + 0x90]
inc eax
push ecx
mov byte [esp + 0xd4], 0xb
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ebp
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x20]
call fcn.005c54af
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0xf4]
test ecx, ecx
jne 0x4bac0b
xor edx, edx
jmp 0x4bac0e
mov edx, dword [ecx + 4]
push 4
push eax
push edx
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp dword [esp + 0x18], 1
jne 0x4bac45
mov ecx, dword [0x6753ec]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [0x6753f0]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
lea ecx, [esp + 0x6c]
push ecx
jmp 0x4bac70
mov eax, dword [0x6753c8]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
xor eax, eax
mov edx, dword [esi]
test ebx, ebx
setne al
add eax, 0xa
mov ecx, dword [eax*4 + 0x6753bc]
push ecx
mov ecx, esi
call dword [edx + 0x2c]
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call fcn.005c4b3b
test ebx, ebx
je 0x4bacab
mov eax, dword [esp + 0xf0]
cmp ebp, dword [eax + 4]
jl 0x4baca4
mov ecx, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x104]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push edi
push esi
call fcn.0049f4c0
inc dword [esp + 0xfc]
mov edx, dword [esp + 0xf0]
cmp ebp, dword [edx + 4]
jl 0x4bb05f
cmp ebx, 1
je 0x4bacc9
cmp dword [0x675528], 1
jne 0x4bace6
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
call fcn.004bc370
mov eax, dword [0x6754d4]
cmp ebx, 1
lea ecx, [edi + eax + 1]
mov dword [esp + 0x64], ecx
jl 0x4bad24
mov edx, dword [esp + 0xdc]
dec ebx
push 0
push ebx
lea ecx, [edx + 0x18]
call fcn.004f4110
test byte [eax + 5], 4
je 0x4bad24
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xf8]
add ebp, eax
push ebp
call fcn.00491be0
mov ebx, dword [esp + 0xe8]
xor ebp, ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4bad5f
cmp dword [0x675528], 1
jne 0x4bad5f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xec]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.004bc450
mov ecx, dword [0x675b18]
mov edi, dword [esp + ebp*4 + 0xb0]
mov eax, dword [esp + 0xf0]
imul edi, ecx
mov edx, dword [eax + 8]
add ebx, ecx
add edi, ebx
cmp ebx, edx
mov dword [esp + 0x28], edi
jg 0x4bb040
lea edx, [edi + ecx]
mov ecx, dword [eax]
cmp edx, ecx
jl 0x4bb040
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + ecx]
push edx
push edi
push eax
lea eax, [esp + 0xac]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [0x675528], 1
jne 0x4bade5
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x675b18]
push edx
mov edx, dword [esp + 0xb0]
add edx, ecx
mov ecx, dword [esp + 0x18]
push eax
push edx
push esi
call fcn.004bc450
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4bae79
test ebp, ebp
jne 0x4badfc
mov eax, dword [0x66da78]
jmp 0x4bae23
cmp ebp, 1
jne 0x4bae08
mov eax, dword [0x66da9c]
jmp 0x4bae23
cmp ebp, 2
jne 0x4bae14
mov eax, dword [0x66dab0]
jmp 0x4bae23
mov eax, dword [0x66daa0]
cmp ebp, 3
je 0x4bae23
mov eax, dword [0x66da90]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 2
mov edx, dword [ecx*4 + 0x6753bc]
mov ecx, esi
push edx
call dword [eax + 0x30]
lea eax, [esp + 0x1c]
push 1
lea ecx, [esp + 0xa4]
push eax
mov eax, dword [esp + 0xec]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
push ebp
push eax
push esi
call fcn.004bc1a0
jmp 0x4bb040
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x30]
dec edx
push 0
lea ebp, [ecx + 0x18]
push edx
mov ecx, ebp
call fcn.004f4110
mov edi, eax
mov eax, dword [esp + 0x24]
cmp eax, 2
jne 0x4baf02
test byte [edi + 4], 1
je 0x4bb038
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
neg edx
sbb edx, edx
push eax
and edx, 0xffffffe1
push ecx
mov ecx, dword [esp + 0x34]
add edx, 0x2b
push 0x682610
mov eax, dword [edx*4 + 0x6753bc]
push eax
lea eax, [ecx - 0xb]
mov ecx, dword [esp + 0x74]
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x20]
push eax
lea eax, [edx + ebx - 0xb]
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004cb630
jmp 0x4bb038
test eax, eax
jne 0x4baf31
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.005bc5aa
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4bb008
mov edx, dword [esi]
mov eax, dword [0x67545c]
jmp 0x4bb002
cmp eax, 1
jne 0x4baf8b
mov ebx, dword [esp + 0xdc]
mov edx, dword [edi]
push 0xffff
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
mov ecx, dword [ebx + 0xd0]
push edx
call fcn.00462b20
test eax, eax
jne 0x4baf76
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [ebx + 0xd0]
add ecx, 0x2f4
call fcn.004f1470
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4bb008
mov edx, dword [esi]
mov eax, dword [0x675460]
jmp 0x4bb002
cmp eax, 3
jne 0x4bafd3
add edi, 6
push edi
call fcn.004eab40
add esp, 4
cmp eax, 1
jne 0x4bafc0
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004ea880
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x4bb008
mov edx, dword [esi]
mov eax, dword [0x675464]
jmp 0x4bb002
mov ecx, dword [esp + 0x28]
mov edx, dword [0x675b18]
mov ebp, dword [esp + 0x24]
lea ebx, [ecx + edx]
jmp 0x4bb049
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x14]
mov edi, eax
push edi
call fcn.00492830
add esp, 4
add eax, edi
lea ecx, [esp + 0x14]
push eax
call fcn.005bc5aa
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4bb008
mov edx, dword [esi]
mov eax, dword [0x67540c]
push eax
mov ecx, esi
call dword [edx + 0x30]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push esi
call fcn.004bc1a0
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [0x675b18]
lea ebx, [edi + ecx]
inc ebp
cmp ebp, 4
mov dword [esp + 0x24], ebp
jle 0x4bad31
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov edi, ebp
test eax, eax
je 0x4bb06f
lea eax, [esp + 0x4c]
jmp 0x4bb07b
test ebx, ebx
lea eax, [esp + 0x54]
je 0x4bb07b
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.005c4b3b
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov dword [esp + 0x1c], vtable.CGdiObject.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd0], 0xc
call fcn.005c5506
mov eax, dword [esp + 0x68]
inc ebx
cmp ebx, eax
mov byte [esp + 0xd0], 5
mov dword [esp + 0x30], ebx
jl 0x4bab58
mov ebp, dword [esp + 0x38]
cmp dword [0x675528], 1
jne 0x4bb0fc
mov ecx, dword [esp + 0xe8]
lea ebx, [edi - 1]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.005c4f8b
push ebx
push ebp
mov ecx, esi
call fcn.005c4fd7
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xec]
push ecx
mov ecx, esi
mov dword [eax], edi
call fcn.005c4b3b
mov edx, dword [esp + 0x78]
mov ecx, esi
push edx
call fcn.005c4b3b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0xd
call fcn.005c5506
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
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 + 0x6c], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 0x10
call fcn.005c5506
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
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 0x2c
mov eax, dword [esp + 0x40]
mov ecx, esi
push eax
call fcn.005c4b3b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 6
call fcn.005c5506
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x44]
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 + 0x6c], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd0], 9
call fcn.005c5506
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0xd0], 0xa
call fcn.005c5506
mov eax, 1
jmp 0x4bb1a1