Function at 0x4eb390
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4c
push ebx
mov ebx, dword [esp + 0xc54]
mov ecx, dword [ebx + 0xc4]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push edi
push 0x104
lea eax, [esp + 0x238]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
call ebp
mov edi, dword [0x5d2618]
push 0x104
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x34]
push eax
call edi
lea ecx, [esp + 0x38]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x232], si
je 0x4eb400
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
lea eax, [esp + 0x234]
push eax
call fcn.004ecbd0
mov ecx, dword [0x621c80]
push 0xbce2
push ecx
call sym.vidcap60.exe__SfGetString_8
push eax
lea edx, [esp + 0x238]
push edx
call dword [0x5d24c4]
add esp, 8
test eax, eax
jne 0x4eb441
mov dword [esp + 0x10], 1
jmp 0x4eb507
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x38]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4eb4d5
jmp 0x4eb460
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push 0x104
lea edx, [esp + 0x440]
push edx
push esi
push eax
call dword [ecx + 0x3c]
push 0x104
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x854]
push ecx
call edi
lea edx, [esp + 0x858]
add esp, 0xc
test edx, edx
mov word [esp + 0xa52], 0
je 0x4eb4b2
mov eax, edx
push eax
call dword [0x5d2620]
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x440]
push edx
call dword [0x5d24c4]
add esp, 8
test eax, eax
je 0x4eb4fd
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4eb460
lea eax, [esp + 0x234]
push eax
call sym.vidcap60.exe__SfStripWhiteSpace_4
lea ecx, [esp + 0x234]
test ecx, ecx
je 0x4eb4fd
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
test eax, eax
jne 0x4eb505
mov dword [esp + 0x10], 1
xor esi, esi
mov ecx, dword [ebx + 0xd8]
push 0x104
lea eax, [esp + 0x648]
push eax
push ecx
call ebp
push 0x104
lea edx, [esp + 0x648]
push edx
lea eax, [esp + 0x34]
push eax
call edi
lea ecx, [esp + 0x38]
add esp, 0xc
test ecx, ecx
mov word [esp + 0x232], si
je 0x4eb550
mov edx, ecx
push edx
call dword [0x5d2620]
add esp, 4
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push 0x104
lea edx, [esp + 0x440]
push edx
mov edx, dword [ebx + 0x24]
push edx
mov edx, dword [ebx + 0x1c]
push edx
push eax
call dword [ecx + 0x84]
lea eax, [esp + 0x43c]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x5d24c4]
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0xc4]
neg esi
push 0x104
lea edx, [esp + 0x238]
sbb esi, esi
push edx
inc esi
push eax
mov dword [esp + 0x30], esi
call ebp
push 0x104
lea ecx, [esp + 0x238]
push ecx
lea edx, [esp + 0x34]
push edx
call edi
lea eax, [esp + 0x38]
add esp, 0xc
test eax, eax
mov word [esp + 0x232], 0
je 0x4eb5dd
mov ecx, eax
push ecx
call dword [0x5d2620]
add esp, 4
cmp word [esp + 0x234], 0x5c
lea eax, [esp + 0x234]
jne 0x4eb617
nop
cmp word [eax], 0
je 0x4eb5f9
add eax, 2
cmp word [eax], 0x5c
je 0x4eb5f0
lea edx, [esp + 0x234]
cmp eax, edx
je 0x4eb617
push eax
mov eax, edx
push eax
call dword [0x5d2614]
add esp, 8
lea ecx, [esp + 0x234]
push ecx
call dword [0x5d2620]
mov eax, dword [ebx + 8]
mov edx, dword [eax]
add esp, 4
push 0x104
lea ecx, [esp + 0x440]
push ecx
mov ecx, dword [ebx + 0x24]
push ecx
mov ecx, dword [ebx + 0x1c]
push ecx
push eax
call dword [edx + 0x80]
lea edx, [esp + 0x43c]
push edx
lea eax, [esp + 0x30]
push eax
call dword [0x5d24c4]
add esp, 8
mov ebp, eax
mov eax, dword [ebx + 0xc]
neg ebp
sbb ebp, ebp
inc ebp
test eax, eax
mov dword [esp + 0x18], 1
je 0x4eb717
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x14]
push ecx
push eax
call dword [edx + 0x20]
mov edx, dword [esp + 0x14]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x4eb711
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
lea edx, [esp + 0x23c]
push edx
mov edx, dword [ebx + 4]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x4eb6db
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push edi
push eax
call dword [ecx + 0x2c]
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov edx, eax
sete dl
push esi
mov dword [esp + 0x1c], edx
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 esi, dword [esp + 0x24]
mov edi, dword [0x5d2618]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x6c]
imul eax, eax, 0x3c
mov eax, dword [eax + ecx + 0x20]
mov edx, dword [eax]
push eax
call dword [edx + 0x28]
cmp eax, 1
jne 0x4eb763
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x5c]
cmp eax, 1
jne 0x4eb763
test ebp, ebp
je 0x4eb763
test esi, esi
je 0x4eb763
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4eb763
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc4c
ret 4
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebx + 0x1c]
push edx
push eax
call dword [ecx + 0x78]
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
jae 0x4eb7c1
nop
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push 0x104
lea edx, [esp + 0xa58]
push edx
mov edx, dword [ebx + 0x1c]
push esi
push edx
push eax
call dword [ecx + 0x80]
lea eax, [esp + 0xa54]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x5d24c4]
add esp, 8
test eax, eax
je 0x4eb7d1
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x4eb780
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebp
je 0x4eb862
jmp 0x4eb7d3
xor ebp, ebp
mov eax, dword [0x621c80]
mov edx, dword [ebx + 8]
mov esi, dword [edx]
push 0xbcea
push eax
call sym.vidcap60.exe__SfGetString_8
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [esi + 0x68]
mov ecx, dword [0x621c80]
push 0x104
lea eax, [esp + 0x238]
push eax
push 0xbcea
push ecx
call sym.vidcap60.exe__SfLoadString_16
mov eax, dword [0x621c80]
push 0x104
lea edx, [esp + 0x648]
push edx
push 0xbceb
push eax
call sym.vidcap60.exe__SfLoadString_16
push 0x104
lea ecx, [esp + 0x238]
push ecx
lea edx, [esp + 0x34]
push edx
call edi
lea eax, [esp + 0x38]
add esp, 0xc
test eax, eax
mov word [esp + 0x232], bp
je 0x4eb862
mov ecx, eax
push ecx
call dword [0x5d2620]
add esp, 4
mov edx, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x6c]
imul edx, edx, 0x3c
mov eax, dword [edx + eax + 0x20]
mov ecx, dword [eax]
push eax
mov dword [esp + 0x1c], ebp
call dword [ecx + 0x2c]
test eax, eax
jl 0x4eb96e
mov eax, dword [ebx + 4]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x20], 1
call dword [edx + 0x60]
mov esi, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x238]
push edx
add esi, 0x14
push esi
call edi
add esp, 0xc
cmp esi, ebp
mov word [esi + 0x206], bp
je 0x4eb8c6
push esi
call dword [0x5d2620]
add esp, 4
mov esi, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x648]
push eax
add esi, 0x21c
push esi
call edi
add esp, 0xc
cmp esi, ebp
mov word [esi + 0x206], bp
je 0x4eb8f8
push esi
call dword [0x5d2620]
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x64]
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x68]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push 1
push ebp
push edx
push eax
call dword [ecx + 0x6c]
mov eax, dword [ebx + 0xc]
cmp eax, ebp
je 0x4eb94e
mov edx, dword [ebx + 0x14]
mov ecx, dword [eax]
lea esi, [ebx + 0x18]
push esi
push edx
push eax
call dword [ecx + 0x20]
mov edx, dword [esi]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
push edx
mov edx, dword [ebx + 0x14]
push edx
mov edx, dword [ebx + 4]
push ebp
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x18]
lea esi, [ebx + 0x24]
push esi
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebx + 4]
add eax, 0x18
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jge 0x4eb96e
mov dword [esi], ebp
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4c
ret 4