Function at 0x4530f501
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
test eax, eax
je 0x4530f51f
push eax
call fcn.45341e40
pop ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4530f531
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4530f547
push 1
call fcn.45341d70
pop ecx
mov ecx, eax
xor eax, eax
mov edi, ecx
mov dword [esi], ecx
stosb byte es:[edi], al
jmp 0x4530f679
mov edi, dword [sym.imp.USER32.dll_GetClassNameA]
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call edi
lea eax, [ebp - 0x108]
push str.32770
push eax
call fcn.45342590
pop ecx
test eax, eax
pop ecx
jne 0x4530f5a6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4530f665
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4530f665
or dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call edi
lea eax, [ebp - 0x108]
push str.ListBox
push eax
call fcn.45342590
pop ecx
test eax, eax
pop ecx
jne 0x4530f631
cmp dword [ebp + 0xc], 0xffffffff
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x4530f5d6
push eax
push eax
push 0x188
push ebx
call esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x4530f665
push 0
mov edi, 0x18a
push dword [ebp + 0xc]
push edi
push ebx
call esi
cmp eax, 0xffffffff
je 0x4530f665
push 0
push dword [ebp + 0xc]
push edi
push ebx
call esi
mov edi, eax
inc edi
push edi
call fcn.45341d70
pop ecx
mov dword [ebp + 8], eax
mov ecx, edi
mov edi, dword [ebp + 8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ecx], eax
push 0x189
jmp 0x4530f6b0
cmp dword [ebp + 0xc], 0
jl 0x4530f6b5
lea eax, [ebp - 0x108]
push str.ComboBox
push eax
call fcn.45342590
pop ecx
test eax, eax
pop ecx
jne 0x4530f6b5
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push dword [ebp + 0xc]
push 0x149
push ebx
call esi
cmp eax, 0xffffffff
jne 0x4530f67d
push 1
call fcn.45341d70
pop ecx
mov ecx, eax
xor eax, eax
mov edi, ecx
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x4530f6f1
lea edi, [eax + 1]
push edi
call fcn.45341d70
pop ecx
mov dword [ebp + 8], eax
mov ecx, edi
mov edi, dword [ebp + 8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ecx], eax
push 0x148
push ebx
call esi
jmp 0x4530f6f1
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
inc edi
push edi
call fcn.45341d70
pop ecx
mov esi, eax
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
mov dword [eax], esi
call fcn.45342480
pop ecx
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop edi
pop esi
pop ebx
leave
ret 8