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

Disassembly:
push 0xffffffffffffffff
push 0x6273f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push edi
mov edi, ecx
mov dword [esp + 8], edi
lea eax, [edi + 0x38]
test eax, eax
je 0x5c9f31
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5ca565
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push ebx
push ebp
push esi
push eax
push ecx
lea esi, [edi + 0x50]
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x60]
mov ecx, eax
neg ecx
neg eax
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_InflateRect]
mov ebp, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov ecx, dword [esi]
sub ebp, edx
sub ebx, ecx
cmp ebp, ebx
jge 0x5c9f86
mov eax, ebx
push 0
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_InflateRect]
cmp ebp, ebx
jle 0x5c9f9d
mov eax, ebp
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
sub eax, ebx
sub ecx, ebp
and eax, 3
je 0x5c9fb4
dec dword [edi + 0x58]
test eax, eax
je 0x5c9fc9
mov edx, dword [edi + 0x58]
dec edx
test eax, eax
mov dword [edi + 0x58], edx
je 0x5c9fc9
mov eax, edx
dec eax
mov dword [edi + 0x58], eax
and ecx, 3
je 0x5c9fd1
dec dword [edi + 0x5c]
test ecx, ecx
je 0x5c9fe4
mov eax, dword [edi + 0x5c]
dec eax
test ecx, ecx
mov dword [edi + 0x5c], eax
je 0x5c9fe4
dec eax
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
sub eax, edx
mov ebx, dword [esi + 8]
cdq
and edx, 3
mov ebp, dword [esi + 0xc]
add eax, edx
mov edx, dword [esi + 4]
mov ecx, eax
mov eax, dword [esi]
sub ebx, eax
mov eax, dword [esi + 0xc]
add eax, edx
sub ebp, edx
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
add eax, edx
mov dword [esp + 0x24], ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], edx
mov eax, dword [edi + 0x7c]
mov edx, dword [edi + 0x54]
mov dword [edi + 0x64], eax
mov eax, dword [esi]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x5c]
sar ecx, 2
sub eax, ecx
mov ecx, dword [edi + 0x58]
xor esi, esi
mov dword [edi + 0x68], edx
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
mov dword [edi + 0x78], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], vtable.CBitmap.0
push ebp
push ebx
mov ebx, dword [esp + 0x88]
lea edx, [esp + 0x40]
push ebx
push edx
mov dword [esp + 0x88], esi
call fcn.005ca580
add esp, 0x10
cmp ebx, esi
jne 0x5ca087
xor ebx, ebx
jmp 0x5ca08a
mov ebx, dword [ebx + 4]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ebx, [edi + 0x38]
push eax
mov ecx, ebx
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 [edi + 0x3c]
push eax
call fcn.005e0933
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], esi
cmp eax, esi
je 0x5ca0da
push esi
push eax
mov ecx, ebx
call fcn.005e09cc
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x2c], eax
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
call fcn.005309c0
mov edx, dword [esp + 0x24]
xor ebx, ebx
cmp eax, 8
push 0xffffff
setg bl
dec ebx
push ebp
push edx
and ebx, 3
push 0
push 0
lea ecx, [edi + 0x38]
mov dword [esp + 0x3c], eax
inc ebx
call fcn.005ee11a
mov eax, ebp
xor esi, esi
cdq
sub eax, edx
mov dword [esp + 0x84], esi
mov ebp, eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
mov ecx, eax
sar ebp, 1
sar ecx, 1
cmp ebp, esi
mov dword [esp + 0x18], ecx
jl 0x5ca261
mov dword [esp + 0x20], esi
jmp 0x5ca138
xor esi, esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], esi
cdq
idiv ebp
mov dword [esp + 0x1c], esi
and eax, 0xff
dec ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x1c]
cdq
idiv ebp
mov edx, dword [esp + 0x24]
sar esi, 1
sub esi, ecx
xor ecx, ecx
add esi, ebp
mov ch, al
or ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x28]
cmp ecx, 8
push eax
jg 0x5ca1f5
lea ecx, [esp + 0x34]
call fcn.005e13ff
mov ecx, dword [esp + 0x80]
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sub ecx, eax
sub esi, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], esi
lea eax, [esp + 0x30]
add ecx, ebx
add esi, ebx
mov dword [esp + 0x58], ecx
neg eax
sbb eax, eax
mov dword [esp + 0x5c], esi
and eax, edx
lea edx, [esp + 0x50]
push eax
mov eax, dword [edi + 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 + 0x78], 1
call fcn.005e1399
mov byte [esp + 0x78], 0
jmp 0x5ca208
mov ecx, dword [esp + 0x84]
mov edx, dword [edi + 0x3c]
push esi
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x1c]
inc eax
dec esi
add edx, 0xff
cmp eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x1c], edx
jle 0x5ca158
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
add edx, 0xff
cmp eax, ebp
mov dword [esp + 0x84], eax
mov dword [esp + 0x20], edx
jle 0x5ca136
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x84], esi
jl 0x5ca3a7
mov dword [esp + 0x1c], esi
jmp 0x5ca27c
mov ecx, dword [esp + 0x18]
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], esi
cdq
idiv ebp
mov dword [esp + 0x20], esi
and eax, 0xff
mov dword [esp + 0x24], eax
jmp 0x5ca29d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
mov esi, ebp
mov dword [esp + 0x50], ecx
lea edi, [ecx + eax]
mov ecx, dword [esp + 0x28]
cdq
sub eax, edx
mov edx, dword [esp + 0x84]
sar eax, 1
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x20]
cdq
idiv ebp
mov edx, dword [esp + 0x24]
and eax, 0xff
shl eax, 0x10
or eax, edx
cmp ecx, 8
push eax
jg 0x5ca343
lea ecx, [esp + 0x34]
call fcn.005e13ff
mov eax, ebx
lea ecx, [esp + 0x40]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
sub edi, eax
sub esi, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
lea eax, [esp + 0x30]
add edi, ebx
add esi, ebx
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
neg eax
sbb eax, eax
and eax, edi
push eax
mov eax, dword [edx + 0x3c]
push ecx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 2
call fcn.005e1399
mov byte [esp + 0x78], 0
jmp 0x5ca353
mov ecx, dword [esp + 0x18]
push esi
push edi
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
inc eax
add edx, 0xff
cmp eax, ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x20], edx
jle 0x5ca299
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 0xff
cmp eax, ebp
mov dword [esp + 0x84], eax
mov dword [esp + 0x1c], edx
jle 0x5ca276
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x80], esi
jl 0x5ca530
mov dword [esp + 0x20], esi
jmp 0x5ca3c2
mov ecx, dword [esp + 0x18]
xor esi, esi
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], esi
cdq
sub eax, edx
mov dword [esp + 0x24], esi
mov edi, eax
mov eax, dword [esp + 0x20]
cdq
idiv ebp
sar edi, 1
mov dword [esp + 0x1c], edi
and eax, 0xff
shl eax, 8
dec ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x84], ecx
jmp 0x5ca3fd
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x80]
sar esi, 1
lea ecx, [eax + ecx + 1]
mov eax, dword [esp + 0x24]
cdq
idiv ebp
add esi, ebp
mov dword [esp + 0x50], ecx
add esi, edi
mov edi, eax
mov eax, dword [esp + 0x30]
and edi, 0xff
or edi, eax
mov eax, dword [esp + 0x28]
shl edi, 8
cmp eax, 8
push edi
jg 0x5ca4af
lea ecx, [esp + 0x44]
call fcn.005e13ff
mov ecx, dword [esp + 0x50]
mov eax, ebx
cdq
sub eax, edx
lea edx, [esp + 0x60]
sar eax, 1
sub ecx, eax
sub esi, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], esi
lea eax, [esp + 0x40]
add ecx, ebx
add esi, ebx
mov dword [esp + 0x68], ecx
neg eax
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x44]
sbb eax, eax
and eax, esi
push eax
mov eax, dword [esp + 0x18]
push edx
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x40], vtable.CGdiObject.0
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 3
call fcn.005e1399
mov byte [esp + 0x78], 0
jmp 0x5ca4d5
mov edx, dword [esp + 0x18]
push esi
push ecx
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
push edi
dec ecx
mov eax, dword [edx + 0x3c]
push esi
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
inc eax
dec esi
add edx, 0xff
cmp eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x24], edx
jle 0x5ca3f9
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
add edx, 0xff
lea eax, [ecx + 1]
mov dword [esp + 0x20], edx
cmp eax, ebp
mov dword [esp + 0x80], eax
jle 0x5ca3bc
mov edi, dword [esp + 0x14]
xor esi, esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x5ca542
push esi
push eax
lea ecx, [edi + 0x38]
call fcn.005e09cc
mov ecx, edi
call fcn.005ca9d0
mov dword [esp + 0x38], vtable.CGdiObject.0
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 4
call fcn.005e1399
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
pop edi
mov dword fs:[0], ecx
add esp, 0x6c
ret 8