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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6274f8
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, ecx
lea eax, [ebx + 0x38]
test eax, eax
je 0x5cb74d
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5cbd40
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push ebp
push esi
push edi
push eax
push ecx
lea edi, [ebx + 0x50]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0x60]
mov ecx, eax
neg ecx
neg eax
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov ebp, dword [edi + 8]
mov ecx, dword [edi]
sub esi, edx
sub ebp, ecx
cmp esi, ebp
jge 0x5cb7a2
mov eax, ebp
push 0
sub eax, esi
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push edi
call dword [sym.imp.USER32.dll_InflateRect]
cmp esi, ebp
jle 0x5cb7b9
mov eax, esi
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 8]
mov esi, dword [edi]
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 4]
sub eax, esi
sub ecx, ebp
and eax, 3
je 0x5cb7d0
dec dword [ebx + 0x58]
test eax, eax
je 0x5cb7e5
mov edx, dword [ebx + 0x58]
dec edx
test eax, eax
mov dword [ebx + 0x58], edx
je 0x5cb7e5
mov eax, edx
dec eax
mov dword [ebx + 0x58], eax
and ecx, 3
je 0x5cb7ed
dec dword [ebx + 0x5c]
test ecx, ecx
je 0x5cb800
mov eax, dword [ebx + 0x5c]
dec eax
test ecx, ecx
mov dword [ebx + 0x5c], eax
je 0x5cb800
dec eax
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub eax, edx
mov ebp, dword [edi + 8]
cdq
and edx, 3
mov esi, dword [edi + 0xc]
add eax, edx
mov edx, dword [edi + 4]
mov ecx, eax
mov eax, dword [edi]
sub ebp, eax
mov eax, dword [edi + 0xc]
add eax, edx
sub esi, edx
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
add eax, edx
mov dword [esp + 0x20], ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], edx
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x54]
mov dword [ebx + 0x64], eax
mov eax, dword [edi]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x5c]
sar ecx, 2
sub eax, ecx
mov ecx, dword [ebx + 0x58]
xor edi, edi
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], vtable.CBitmap.0
push esi
push ebp
mov ebp, dword [esp + 0x80]
lea edx, [esp + 0x40]
push ebp
push edx
mov dword [esp + 0x80], edi
call fcn.005ca580
add esp, 0x10
cmp ebp, edi
jne 0x5cb8a3
xor ebp, ebp
jmp 0x5cb8a6
mov ebp, dword [ebp + 4]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ebp, [ebx + 0x38]
push eax
mov ecx, ebp
call fcn.005e07f2
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [ebx + 0x3c]
push eax
call fcn.005e0933
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], edi
cmp eax, edi
je 0x5cb8f3
push edi
push eax
mov ecx, ebp
call fcn.005e09cc
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
call fcn.005309c0
xor edx, edx
cmp eax, 8
setg dl
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
dec edx
push 0xffffff
and edx, 3
push esi
push eax
inc edx
push 0
push 0
lea ecx, [ebx + 0x38]
mov ebp, edx
call fcn.005ee11a
mov eax, esi
xor esi, esi
cdq
sub eax, edx
mov dword [esp + 0x7c], esi
mov edi, eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
mov ecx, eax
sar edi, 1
sar ecx, 1
cmp edi, esi
mov dword [esp + 0x14], ecx
jl 0x5cba68
mov dword [esp + 0x1c], esi
jmp 0x5cb950
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
cdq
idiv edi
mov dword [esp + 0x18], esi
and eax, 0xff
dec ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
idiv edi
mov edx, dword [esp + 0x20]
sar esi, 1
sub esi, ecx
xor ecx, ecx
add esi, edi
mov ch, al
or ecx, edx
push ecx
call fcn.00530020
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 8
push eax
jg 0x5cba0b
lea ecx, [esp + 0x34]
call fcn.005e13ff
mov ecx, dword [esp + 0x78]
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sub ecx, eax
sub esi, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
lea eax, [esp + 0x30]
add ecx, ebp
add esi, ebp
mov dword [esp + 0x50], ecx
neg eax
sbb eax, eax
mov dword [esp + 0x54], esi
and eax, edx
lea edx, [esp + 0x48]
push eax
mov eax, dword [ebx + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 1
call fcn.005e1399
mov byte [esp + 0x70], 0
jmp 0x5cba1b
mov ecx, dword [esp + 0x7c]
mov edx, dword [ebx + 0x3c]
push esi
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
inc eax
dec esi
add edx, 0xff
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x18], edx
jle 0x5cb96d
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 0xff
cmp eax, edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x1c], edx
jle 0x5cb94e
xor esi, esi
cmp edi, esi
mov dword [esp + 0x7c], esi
jl 0x5cbb9a
mov dword [esp + 0x18], esi
jmp 0x5cba80
mov ecx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x78], esi
cdq
idiv edi
mov dword [esp + 0x1c], esi
and eax, 0xff
mov dword [esp + 0x20], eax
jmp 0x5cba9e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], ecx
add ecx, eax
mov esi, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x7c]
sar eax, 1
sub eax, edx
mov dword [esp + 0x40], ecx
add esi, eax
mov eax, dword [esp + 0x1c]
cdq
idiv edi
mov edx, dword [esp + 0x20]
and eax, 0xff
shl eax, 0x10
or eax, edx
push eax
call fcn.00530020
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 8
push eax
jg 0x5cbb4a
lea ecx, [esp + 0x34]
call fcn.005e13ff
mov ecx, dword [esp + 0x40]
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub esi, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
lea eax, [esp + 0x30]
add ecx, ebp
add esi, ebp
mov dword [esp + 0x50], ecx
neg eax
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x34]
sbb eax, eax
and eax, esi
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 2
call fcn.005e1399
mov byte [esp + 0x70], 0
jmp 0x5cbb5a
mov edx, dword [esp + 0x44]
mov eax, dword [ebx + 0x3c]
push esi
push edx
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 0xff
cmp eax, edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], edx
jle 0x5cba9a
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
inc eax
add edx, 0xff
cmp eax, edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x18], edx
jle 0x5cba7a
xor esi, esi
cmp edi, esi
mov dword [esp + 0x78], esi
jl 0x5cbd0b
mov dword [esp + 0x1c], esi
jmp 0x5cbbae
xor esi, esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], esi
cdq
sub eax, edx
mov dword [esp + 0x20], esi
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
cdq
idiv edi
mov edx, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
shl ecx, 8
dec edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x7c], edx
jmp 0x5cbbe8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
mov esi, eax
mov eax, dword [esp + 0x7c]
sar esi, 1
lea eax, [edx + eax + 1]
add esi, edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
add esi, eax
mov eax, dword [esp + 0x20]
cdq
idiv edi
and eax, 0xff
or eax, ecx
shl eax, 8
push eax
call fcn.00530020
mov ecx, dword [esp + 0x28]
add esp, 4
cmp ecx, 8
mov dword [esp + 0x30], eax
push eax
jg 0x5cbc9a
lea ecx, [esp + 0x44]
call fcn.005e13ff
mov ecx, dword [esp + 0x48]
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [ebx + 0x3c]
sar eax, 1
sub ecx, eax
sub esi, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
lea eax, [esp + 0x40]
add ecx, ebp
add esi, ebp
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x64], esi
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x40], vtable.CGdiObject.0
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 3
call fcn.005e1399
mov byte [esp + 0x70], 0
jmp 0x5cbcc0
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x3c]
push esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
mov ecx, dword [ebx + 0x3c]
push edx
dec eax
push esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
inc eax
dec esi
add edx, 0xff
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x20], edx
jle 0x5cbbe4
mov edx, dword [esp + 0x78]
lea eax, [edx + 1]
mov edx, dword [esp + 0x1c]
add edx, 0xff
cmp eax, edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], edx
jle 0x5cbbac
xor esi, esi
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x5cbd1d
push esi
push eax
lea ecx, [ebx + 0x38]
call fcn.005e09cc
mov ecx, ebx
call fcn.005cc170
mov dword [esp + 0x38], vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 4
call fcn.005e1399
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x5c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 8