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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1c]
push esi
mov esi, dword [ebx + 0x18]
push edi
push 0
push 9
push 0x110a
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
je 0x528635
lea ecx, [esp + 0x488]
push ecx
push edi
push esi
call fcn.0052d050
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov word [esp + eax*2 + 0x488], 0x5c
mov dword [esp + 0x38], edx
lea eax, [esp + eax*2 + 0x48a]
push edi
mov dword [esp + 0x40], edx
push esi
mov dword [esp + 0x70], eax
mov word [eax], 0
mov dword [esp + 0x48], edx
call fcn.0052bfe0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push 0x1032
push eax
call edi
mov esi, eax
test esi, esi
mov dword [esp + 0x74], esi
jle 0x528635
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 0x20
je 0x528394
test byte [ebx + 0x913], 1
je 0x528394
push 1
push ebx
call fcn.00527750
jmp 0x52839a
push ebx
call fcn.005274b0
cmp esi, 1
jne 0x52856b
mov esi, dword [esp + 0x20]
push 2
push 0xffffffffffffffff
push 0x100c
push esi
call edi
push eax
push esi
call fcn.00527420
mov ecx, dword [esp + 0x2c]
mov edx, eax
mov dword [esp + 0x6c], edx
mov eax, dword [ecx + 8]
mov eax, dword [eax + edx*4]
test dword [eax], 0x80000
mov dword [esp + 0x18], eax
jne 0x528635
movzx ecx, word [eax + 0x10]
mov edi, dword [esp + 0x68]
shl ecx, 1
lea esi, [eax + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x30], edx
xor eax, eax
lea edx, [esp + 0x78]
mov dword [esp + 0x3c], edx
mov ecx, 0x104
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x58]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x488]
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebx + 4]
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x78]
test ecx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x24], 9
mov dword [esp + 0x38], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x36
jne 0x528483
xor eax, eax
jmp 0x528491
lea edx, [esp + 0x78]
push edx
call dword [0x5d2620]
add esp, 4
lea edi, [eax + 1]
movzx eax, di
lea ecx, [eax + eax + 0x16]
push ecx
push 1
call dword [0x5d24c0]
mov esi, eax
mov eax, dword [esp + 0x20]
mov word [esi + 0x10], di
mov word [esi + 0x12], 0
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x80]
push ecx
lea edx, [esi + 0x14]
push edx
mov dword [esi + 0xc], eax
call dword [0x5d2614]
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
lea eax, [esp + 0x44]
push eax
push ecx
push 0x4e
push edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], 1
call edi
cmp eax, 3
je 0x528558
cmp eax, 2
jne 0x528514
mov dword [esp + 0x40], 1
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x52853f
push ebx
call fcn.0052e040
push esi
call dword [0x5d25a4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x44]
push eax
push ecx
push 0x4e
push edx
mov dword [esp + 0x5c], 0x37
call edi
push esi
call dword [0x5d25a4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0x40000002
push 1
push esi
push 4
lea eax, [esp + 0x38]
push eax
call sym.vidcap60.exe__SfList_CreateExZ_32
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x528635
mov ecx, esi
imul ecx, ecx, 0x208
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x18], eax
je 0x528635
push 0
push 0
push 0
push 0x40000002
push 1
push esi
push 4
lea eax, [esp + 0x2c]
lea edx, [esp + 0x4a4]
push eax
mov dword [esp + 0x44], 2
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], 0
call sym.vidcap60.exe__SfList_CreateExZ_32
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x528635
or eax, 0xffffffff
cmp esi, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], ecx
jg 0x528642
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x1c]
push eax
call sym.vidcap60.exe__SfList_Destroy_4
mov ecx, dword [esp + 0x10]
push ecx
call sym.vidcap60.exe__SfList_Destroy_4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
push 2
push eax
push 0x100c
push ecx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x70], eax
je 0x52878d
mov edx, dword [esp + 0x20]
push eax
push edx
call fcn.00527420
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
mov edx, dword [ecx + 8]
mov ebx, dword [edx + eax*4]
test dword [ebx], 0x80000
jne 0x52877a
movzx ecx, word [ebx + 0x10]
mov edi, dword [esp + 0x68]
shl ecx, 1
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + edx*2]
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x58]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x40], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x3c]
xor edi, edi
cmp eax, edi
jne 0x5286d0
xor eax, eax
jmp 0x5286da
push eax
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x64]
lea esi, [eax + 1]
add edx, esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esi + esi + 0x16]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x18], edi
call sym.vidcap60.exe__SfList_AllocItem_12
test eax, eax
jl 0x52875a
mov eax, dword [esp + 0xc]
mov word [eax + 0x10], si
mov ecx, dword [esp + 0xc]
mov word [ecx + 0x12], di
mov edx, dword [ebx]
mov eax, dword [esp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
push ecx
add edx, 0x14
push edx
call fcn.00404990
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00461380
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
push esi
push 4
lea edx, [esp + 0x78]
push edx
push eax
call sym.vidcap60.exe__SfList_AllocAndInsertItem_20
inc esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x74]
cmp dword [esp + 0x14], esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp + 8]
jl 0x52863e
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x528603
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
push 0x4e
push eax
mov dword [esp + 0x34], 9
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x48], esi
mov dword [esp + 0x5c], 0x36
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], 2
call edi
cmp eax, 3
je 0x528607
cmp eax, 2
jne 0x528829
mov dword [esp + 0x40], 1
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x528846
push ebx
call fcn.0052e040
jmp 0x528607
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x44]
push eax
push ecx
push 0x4e
push edx
mov dword [esp + 0x5c], 0x37
call edi
jmp 0x528607