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

Disassembly:
sub esp, 0x80
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
test cl, cl
mov ebx, eax
js 0x5248be
test cl, 1
je 0x5242ca
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x5248be
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x5242e2
call fcn.00524220
pop esi
pop ebx
add esp, 0x80
ret
mov eax, dword [esi + 0x114]
test eax, eax
je 0x5242fb
push ebx
call fcn.0051f250
pop esi
pop ebx
add esp, 0x80
ret
test ch, 8
je 0x524310
push ebx
push esi
call fcn.005209c0
pop esi
pop ebx
add esp, 0x80
ret
mov al, byte [esi]
xor edx, edx
and al, 0x30
cmp al, 0x10
setne dl
test cl, 0x10
push ebp
push edi
mov ebp, edx
mov dword [esp + 0x4c], ebp
je 0x52436a
mov eax, dword [esi + 0xc8]
push ebp
push 1
push 1
push eax
lea eax, [esi + 0xb8]
push esi
mov edi, ebx
call fcn.005204a0
mov ecx, dword [esi + 0xec]
push ebp
push 0
push 1
push ecx
lea eax, [esi + 0xdc]
push esi
call fcn.005204a0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret
mov eax, dword [esi + 0xb8]
mov ebp, dword [esi + 0xc0]
mov edx, dword [esi + 0xbc]
lea edi, [esi + 0xb8]
sub ebp, eax
mov eax, dword [edi + 0xc]
sub eax, edx
test ch, 4
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc8]
mov dword [esp + 0x84], edi
mov dword [esp + 0x28], ebp
je 0x52489a
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
call esi
push 0x14
mov dword [esp + 0x80], eax
call esi
mov ecx, dword [esp + 0x7c]
mov dl, cl
shr dl, 1
mov byte [esp + 0x23], dl
mov dx, cx
shr ecx, 0x10
mov dword [esp + 0x80], ecx
shr cl, 1
mov byte [esp + 0x21], cl
movzx ecx, al
add ecx, 0xff
sar ecx, 1
mov byte [esp + 0x22], cl
movzx ecx, ah
shr eax, 0x10
movzx eax, al
shr dx, 8
add ecx, 0xff
add eax, 0xff
mov word [esp + 0x6a], dx
shr dl, 1
sar ecx, 1
sar eax, 1
push 6
mov byte [esp + 0x22], dl
mov byte [esp + 0x24], cl
mov byte [esp + 0x23], al
call sym.vidcap60.exe__SfGetUIBrush_4
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 4]
mov esi, dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
push 1
mov dword [esp + 0x54], eax
mov eax, dword [edi]
add ebp, 0xfffffffe
push ebp
push edx
inc eax
push eax
push ebx
call esi
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
push 0xf00021
push 1
push ebp
dec ecx
push ecx
inc edx
push edx
push ebx
call esi
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push 0xf00021
add ebp, 0xfffffffe
push ebp
push 1
inc eax
push eax
push ecx
push ebx
call esi
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
push 0xf00021
push ebp
inc edx
push 1
push edx
dec eax
push eax
push ebx
call esi
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x58], esi
call edi
mov edx, dword [esp + 0x10]
add edx, 0xfffffffe
xor ecx, ecx
test edx, edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x3c], ecx
jbe 0x524873
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x5244d0
fadd dword [0x5eab28]
fstp dword [esp + 0x88]
jmp 0x5244e0
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x5244f2
fadd dword [0x5eab28]
fdiv dword [esp + 0x88]
mov eax, dword [esp + 0x28]
dec eax
cmp eax, 1
mov dword [esp + 0x24], 1
fsubr dword [0x5e971c]
fstp dword [esp + 0x14]
jbe 0x52485c
movzx eax, byte [esp + 0x22]
fild dword [esp + 0x28]
movzx esi, byte [esp + 0x20]
fstp dword [esp + 0x8c]
movzx ebp, byte [esp + 0x6a]
movzx edi, byte [esp + 0x80]
mov dword [esp + 0x64], esi
movzx esi, byte [esp + 0x1f]
mov dword [esp + 0x54], eax
movzx eax, byte [esp + 0x7c]
mov dword [esp + 0x48], esi
movzx esi, byte [esp + 0x23]
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
fild dword [esp + 0x34]
movzx esi, byte [esp + 0x1e]
fstp dword [esp + 0x6c]
mov dword [esp + 0x38], edi
fild dword [esp + 0x40]
mov dword [esp + 0x60], esi
movzx esi, byte [esp + 0x21]
fstp dword [esp + 0x78]
fild dword [esp + 0x38]
mov dword [esp + 0x5c], esi
fstp dword [esp + 0x74]
jmp 0x5245a0
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edi, edi
mov esi, dword [esp + 0x24]
fild dword [esp + 0x24]
test esi, esi
jge 0x5245b2
fadd dword [0x5eab28]
cmp ecx, 2
fdiv dword [esp + 0x8c]
fsubr dword [0x5e971c]
jbe 0x5245e2
lea esi, [edx - 3]
cmp ecx, esi
jae 0x5245df
cmp dword [esp + 0x24], 3
jb 0x5245df
mov esi, dword [esp + 0x28]
add esi, 0xfffffffc
cmp dword [esp + 0x24], esi
jbe 0x52460b
cmp ecx, 2
je 0x5245ef
add edx, 0xfffffffd
cmp ecx, edx
jne 0x5246c5
mov ecx, dword [esp + 0x24]
cmp ecx, 3
jbe 0x5246c5
mov edx, dword [esp + 0x28]
add edx, 0xfffffffc
cmp ecx, edx
jae 0x5246c5
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fadd dword [esp + 0x6c]
call fcn.005c4484
mov edx, dword [esp + 0x60]
sub edx, ebp
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov esi, eax
fmul dword [esp + 0x14]
fadd dword [esp + 0x78]
call fcn.005c4484
mov ebp, eax
mov eax, dword [esp + 0x5c]
sub eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fadd dword [esp + 0x74]
call fcn.005c4484
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
sub ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov edi, eax
fmul dword [esp + 0x14]
fiadd dword [esp + 0x54]
call fcn.005c4484
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
sub edx, dword [esp + 0x64]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fiadd dword [esp + 0x64]
call fcn.005c4484
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fiadd dword [esp + 0x48]
jmp 0x52477a
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fadd dword [esp + 0x6c]
call fcn.005c4484
mov edx, dword [esp + 0x64]
sub edx, ebp
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov esi, eax
fmul dword [esp + 0x14]
fadd dword [esp + 0x78]
call fcn.005c4484
mov ebp, eax
mov eax, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fadd dword [esp + 0x74]
call fcn.005c4484
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
sub ecx, edx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov edi, eax
fmul dword [esp + 0x14]
fiadd dword [esp + 0x44]
call fcn.005c4484
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
sub edx, dword [esp + 0x60]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fiadd dword [esp + 0x60]
call fcn.005c4484
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
fiadd dword [esp + 0x5c]
call fcn.005c4484
mov dword [esp + 0x10], eax
sub esi, dword [esp + 0x30]
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
fmul st(1)
fiadd dword [esp + 0x30]
call fcn.005c4484
sub ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], ebp
fild dword [esp + 0x18]
mov dword [esp + 0x30], eax
fmul st(1)
fiadd dword [esp + 0x2c]
call fcn.005c4484
sub edi, dword [esp + 0x10]
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
mov dword [esp + 0x2c], eax
fmul st(1)
fiadd dword [esp + 0x10]
call fcn.005c4484
fstp st(0)
mov ecx, dword [esp + 0x58]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
mov dword [esp + 0x20], eax
call esi
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
movzx ecx, byte [esp + 0x30]
xor eax, eax
mov ah, byte [esp + 0x18]
mov al, byte [esp + 0x2c]
shl eax, 8
or eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push ebx
mov dword [esp + 0x58], eax
call esi
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
push 0xf00021
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x88]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push 1
lea edx, [edx + ecx + 1]
push edx
add eax, esi
push eax
push ebx
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
inc esi
dec eax
cmp esi, eax
mov dword [esp + 0x24], esi
jb 0x524592
inc ecx
cmp ecx, edx
mov dword [esp + 0x3c], ecx
jb 0x5244e0
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push ecx
push ebx
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x4c]
push edx
push ebx
call edi
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret
mov ecx, dword [esp + 0x4c]
push ecx
push 0
push 0
push eax
mov eax, edi
mov edi, ebx
push esi
call fcn.005204a0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x80
ret