Function at 0x5024d0
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [esp + 0x7c]
mov dword [edi + 0x6c], eax
mov al, byte [edi + 4]
xor ebp, ebp
test al, 1
je 0x5024f9
mov ebp, dword [esp + 0x78]
xor ebx, ebx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x78]
mov esi, eax
mov eax, dword [esp + 0x7c]
add eax, ebx
push eax
add ecx, ebp
push ecx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x78]
mov dword [edi + 0x60], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
and eax, 0x100
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], eax
je 0x5025c6
cmp dword [edi + 0xbc], 1
jbe 0x5025c6
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x28]
mov edx, ecx
and edx, 4
shr edx, 2
shl edx, 1
sub eax, edx
sub eax, dword [edi + 0x40]
test cl, 1
je 0x50256f
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x44]
cmp eax, 0x1f
mov dword [edi + 0x70], eax
jle 0x5025c6
push esi
push edi
call fcn.00501730
test byte [edi + 4], 1
je 0x50258e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
jmp 0x502596
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push edx
lea edx, [eax + ecx*2]
push edx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0x60]
test eax, eax
jne 0x5025e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov esi, dword [0x611ae4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x6c]
push edx
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
xor ecx, ecx
push ecx
add eax, ebp
push ecx
mov dword [esp + 0x6c], eax
lea eax, [edx + ebx]
push ecx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push eax
push 2
push ecx
push ecx
push esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x74]
mov edx, dword [edi + 4]
mov ecx, eax
shr ecx, 5
shl ecx, 4
xor ecx, edx
and ecx, 0x10
xor edx, ecx
and eax, 2
mov dword [edi + 4], edx
mov dword [esp + 0x34], eax
je 0x50278e
push 0x6e
mov dword [edi + 0x40], 4
mov dword [edi + 0x44], 4
call sym.vidcap60.exe__SfGetUIFont_4
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [edi + 0x40]
push eax
push 6
push str.__00.0
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
add ecx, 2
mov dword [edi + 0x44], ecx
mov ecx, dword [edi + 4]
add edx, 2
test cl, 1
mov dword [edi + 0x40], edx
je 0x50272f
mov edx, dword [edi + 0xdc]
mov eax, dword [esp + 0x78]
lea eax, [eax + edx*2]
mov dword [esp + 0x70], eax
mov dword [edi + 0x40], eax
mov eax, dword [edi]
test al, 4
je 0x5026d1
mov edx, dword [esp + 0x7c]
mov eax, dword [edi + 0x44]
cmp eax, edx
jl 0x5026cc
mov eax, edx
mov dword [edi + 0x44], eax
jmp 0x5026e8
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
mov edx, dword [edi + 0x44]
sar eax, 1
cmp edx, eax
jle 0x5026e8
mov dword [edi + 0x44], 0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x502720
mov eax, dword [esp + 0x74]
test al, al
jns 0x502709
mov eax, dword [esp + 0x70]
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
cmp edx, eax
jmp 0x502718
mov edx, dword [edi + 0xbc]
imul edx, dword [esp + 0x70]
cmp dword [esp + 0x78], edx
jge 0x502720
or ecx, 0x10
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x7c]
mov eax, dword [edi + 0x44]
sub ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x50278e
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x50275e
mov eax, dword [esp + 0x74]
test al, al
jns 0x502748
mov eax, dword [edi + 0x44]
cmp dword [esp + 0x7c], eax
jmp 0x502756
mov edx, dword [edi + 0xbc]
imul edx, dword [edi + 0x44]
cmp dword [esp + 0x7c], edx
jge 0x50275e
or ecx, 0x10
mov dword [edi + 4], ecx
mov eax, dword [edi + 0xdc]
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + eax*2]
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x44], edx
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [edi + 0x40]
sar eax, 1
cmp edx, eax
jle 0x502787
mov dword [edi + 0x40], 0
sub ecx, dword [edi + 0x40]
mov dword [esp + 0x78], ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
push ecx
push edx
push eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [edi + 0x68], eax
mov eax, dword [esp + 0x70]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x7c]
dec eax
mov ecx, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], eax
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 4
shr ecx, 2
shl ecx, 1
mov edx, ecx
mov ecx, dword [edi + 0x28]
sub ecx, edx
mov edx, dword [edi + 0x40]
shl eax, 0x1f
sub ecx, edx
sar eax, 0x1f
test eax, eax
mov dword [esp + 0x14], ecx
je 0x50280f
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x44]
mov dword [esp + 0x14], ecx
jmp 0x502813
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [edi + 0x70], ecx
je 0x502820
mov eax, dword [edi + 0x44]
inc eax
jmp 0x502824
mov eax, dword [esp + 0x70]
push 0xff0000
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 0xd0]
cmp edx, 2
jae 0x5028ff
mov ecx, dword [edi + 0xcc]
test ecx, ecx
mov eax, 0xff
mov dword [esp + 0x70], 0x80
je 0x502868
test edx, edx
jbe 0x502868
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x70], ecx
test byte [edi + 4], 1
push 0xf
push eax
lea edx, [esp + 0x54]
push edx
push esi
je 0x5028bb
call fcn.005018f0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
add eax, ebx
add ecx, ebx
push 0xf
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x54]
push ecx
add edx, ebp
push esi
mov dword [esp + 0x64], edx
call fcn.005018f0
jmp 0x502ca0
call fcn.00501b60
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
add eax, ebx
add ecx, ebx
push 0xf
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x54]
push ecx
add edx, ebp
push esi
mov dword [esp + 0x64], edx
call fcn.00501b60
jmp 0x502ca0
test byte [edi + 4], 1
je 0x50290f
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
jmp 0x502917
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x28], ecx
xor eax, eax
dec edx
mov dword [esp + 0x30], eax
je 0x502ca0
mov dword [esp + 0x10], eax
jmp 0x502930
mov edx, dword [edi + 0xcc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edx]
add eax, edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fcomp dword [edi + 0x74]
mov dword [esp + 0x20], edx
fnstsw ax
test ah, 5
jp 0x502965
mov eax, dword [edi + 0x74]
mov dword [esp + 0x1c], eax
jmp 0x50297a
fld dword [esp + 0x1c]
fcomp dword [edi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x50297a
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x20]
fcomp dword [edi + 0x74]
fnstsw ax
test ah, 5
jp 0x502991
mov edx, dword [edi + 0x74]
mov dword [esp + 0x20], edx
jmp 0x5029a6
fld dword [esp + 0x20]
fcomp dword [edi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x5029a6
mov eax, dword [edi + 0x78]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00501120
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x74], eax
call fcn.00501120
mov ecx, eax
test byte [edi + 4], 1
je 0x502b18
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
shl eax, 1
cmp edx, eax
jg 0x5029e7
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x50]
dec eax
cmp edx, eax
mov dword [esp + 0x24], eax
jl 0x5029fc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
shl eax, 1
cmp eax, ecx
jl 0x502a13
mov eax, ecx
mov ecx, dword [esp + 0x50]
cmp ecx, eax
mov dword [esp + 0x58], eax
jg 0x502c7d
cmp ecx, dword [esp + 0x28]
mov dword [esp + 0x70], 5
jg 0x502a39
mov dword [esp + 0x70], 7
cmp eax, dword [esp + 0x24]
jl 0x502a44
or dword [esp + 0x70], 8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x502ab8
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
push esi
call fcn.00506640
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
add eax, ebx
add edx, ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0xcc]
add ecx, ebx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x70]
push ecx
add eax, edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0xc]
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
push esi
call fcn.00506640
jmp 0x502c4d
mov edx, dword [esp + 0x70]
mov ecx, dword [eax + 8]
push edx
push ecx
lea edx, [esp + 0x54]
push edx
push esi
call fcn.005018f0
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
add eax, ebx
add ecx, ebx
add edx, ebp
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + ecx + 0xc]
push eax
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.005018f0
jmp 0x502c4d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
sub eax, edx
mov edx, dword [esp + 0x2c]
add eax, edx
cmp eax, 1
mov dword [esp + 0x54], eax
jg 0x502b39
mov dword [esp + 0x54], 1
sub ecx, dword [esp + 0x14]
lea eax, [ecx + edx]
cmp eax, 1
jg 0x502b4a
mov eax, 1
mov ecx, dword [esp + 0x54]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x502c7d
cmp ecx, dword [esp + 0x28]
mov dword [esp + 0x70], 0xa
jl 0x502b70
mov dword [esp + 0x70], 0xe
cmp eax, 1
jg 0x502b7a
or dword [esp + 0x70], 1
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
test eax, eax
je 0x502bee
mov eax, dword [esp + 0x70]
push eax
mov eax, edx
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 8]
push ecx
push edx
lea eax, [esp + 0x58]
push eax
push esi
call fcn.00506b20
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
add ecx, ebx
add edx, ebp
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x58], eax
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
push esi
call fcn.00506b20
jmp 0x502c4d
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
push edx
push ecx
lea edx, [esp + 0x54]
push edx
push esi
call fcn.00501b60
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add eax, ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
add eax, ebx
add ecx, ebx
add edx, ebp
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0xcc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [edx + ecx + 0xc]
push eax
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.00501b60
mov edx, dword [esp + 0x4c]
mov ecx, ebp
neg ecx
add edx, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x54]
add edx, ecx
mov ecx, dword [esp + 0x58]
mov eax, ebx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x50]
neg eax
add edx, eax
add ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add edx, 0x10
mov dword [esp + 0x10], edx
mov edx, dword [edi + 0xd0]
inc eax
dec edx
cmp eax, edx
mov dword [esp + 0x30], eax
jb 0x502930
mov ecx, dword [esp + 0x7c]
push 0xf
xor eax, eax
push 2
lea edx, [esp + 0x64]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
push edx
push esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
add ecx, ebp
add eax, ebp
push 0xf
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x68], eax
push 2
lea eax, [esp + 0x64]
push eax
add edx, ebx
add ecx, ebx
push esi
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], ecx
call dword [sym.imp.USER32.dll_DrawEdge]
push 0x6e
call sym.vidcap60.exe__SfGetUIFont_4
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [edi + 0x50]
push ecx
push 1
push 0x5d4f14
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x74]
test al, 0x40
je 0x502d58
cmp dword [esp + 0x14], 0x1f
jle 0x502d58
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push 1
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push esi
mov eax, edi
call fcn.00501f30
mov eax, dword [esp + 0x34]
test eax, eax
je 0x502ea3
mov ecx, dword [edi + 0x6c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test byte [edi + 4], 1
push 0
je 0x502e6a
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esp + 0x7c]
lea ecx, [edx + ebx]
mov edx, dword [esp + 0x78]
add edx, ebp
push ecx
push edx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
push 0xcc0020
push 0
push 0
push esi
mov dword [esp + 0x84], eax
lea eax, [edx + ebx]
push eax
mov eax, dword [esp + 0x48]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [edi + 0x44]
push ecx
lea eax, [ebp + ebp]
push eax
push edx
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x74]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [edi + 0x44]
xor ecx, ecx
push ecx
push ecx
lea eax, [ebp + ebp]
push ecx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x68]
push eax
push 2
push ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
push ecx
jmp 0x502e95
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi + 0x40]
push 0
push 0
add ecx, eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
push 2
push 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ecx
lea edx, [ebx + ebx]
push 0
push esi
mov dword [esp + 0x88], edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x38]
push ecx
push esi
mov dword [edi + 0x58], ebp
mov dword [edi + 0x5c], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret 0x10