Function at 0x437880
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
sub edx, 0x7d1
je 0x4379f6
sub edx, 1
je 0x4378b7
sub edx, 1
jne 0x437b29
cmp dword [ebp + 0xc], edx
jne 0x437b29
call fcn.00436260
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp dword [ebp + 0xc], 4
jne 0x437b29
mov edx, dword [0x5688d4]
mov ecx, dword [edx + 0x44]
mov esi, dword [edx + 0x40]
cmp ecx, 0xffffffff
jle 0x4379bc
cmp esi, 0xffffffff
jle 0x4379bc
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x4378ea
xor ebx, ebx
jmp 0x4378ed
mov ebx, dword [eax + 8]
cmp ecx, ebx
jge 0x4379bc
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4379bc
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x43790e
xor ecx, ecx
jmp 0x437911
mov ecx, dword [eax + 8]
cmp esi, ecx
jge 0x43791d
mov eax, dword [eax + 4]
mov esi, dword [eax + esi*4]
jmp 0x43791f
xor esi, esi
mov ebx, dword [ebp + 8]
test esi, esi
je 0x4379c1
push 0x400
push 0x5ba2b0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [esi]
call fcn.004e4d39
xor ecx, ecx
add esp, 4
cmp byte [0x5ba2b0], cl
je 0x43795a
nop
inc ecx
cmp byte [ecx + 0x5ba2b0], 0
jne 0x437950
xor eax, eax
add ecx, 1
push 1
setb al
neg eax
or eax, ecx
push eax
call fcn.004de5ef
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x437985
push 1
push 1
call fcn.004de5ef
add esp, 8
jmp 0x4379a9
xor eax, eax
cmp byte [0x5ba2b0], al
je 0x43799a
nop
inc eax
cmp byte [eax + 0x5ba2b0], 0
jne 0x437990
push eax
push 0x5ba2b0
push ecx
call fcn.004db1b0
add esp, 0xc
mov dword [esi], eax
mov edx, dword [0x5688d4]
cmp dword [edx + 0xb0], 0
jne 0x4379c7
jmp 0x4379c1
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edx + 0x40], 0
jne 0x4379d9
push dword [esi]
mov ecx, edi
push dword [edx + 0x40]
mov edx, dword [edx + 0x44]
call fcn.00435f30
add esp, 8
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, edi
call fcn.004361c0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp dword [ebp + 0xc], 0x309
jne 0x437b29
mov eax, dword [0x5688d4]
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x40]
cmp ecx, 0xffffffff
jle 0x437b1b
cmp esi, 0xffffffff
jle 0x437b1b
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x437a2b
xor edx, edx
jmp 0x437a2e
mov edx, dword [eax + 8]
cmp ecx, edx
jge 0x437b1b
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x437b1b
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x437a4f
xor ecx, ecx
jmp 0x437a52
mov ecx, dword [eax + 8]
cmp esi, ecx
jge 0x437a5e
mov eax, dword [eax + 4]
mov esi, dword [eax + esi*4]
jmp 0x437a60
xor esi, esi
test esi, esi
je 0x437b1b
mov ebx, dword [ebp + 8]
push 0x400
push 0x5ba6d0
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [esi]
call fcn.004e4d39
xor ecx, ecx
add esp, 4
cmp byte [0x5ba6d0], cl
je 0x437a9a
inc ecx
cmp byte [ecx + 0x5ba6d0], 0
jne 0x437a90
xor eax, eax
add ecx, 1
push 1
setb al
neg eax
or eax, ecx
push eax
call fcn.004de5ef
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x437ac5
push 1
push 1
call fcn.004de5ef
add esp, 8
jmp 0x437ae9
xor eax, eax
cmp byte [0x5ba6d0], al
je 0x437ada
nop
inc eax
cmp byte [eax + 0x5ba6d0], 0
jne 0x437ad0
push eax
push 0x5ba6d0
push ecx
call fcn.004db1b0
add esp, 0xc
push 0
push ebx
mov dword [esi], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x5688d4]
cmp dword [edx + 0xb0], 0
jne 0x437b09
cmp dword [edx + 0x40], 0
jne 0x437b1b
push dword [esi]
mov ecx, edi
push dword [edx + 0x40]
mov edx, dword [edx + 0x44]
call fcn.00435f30
add esp, 8
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, edi
call fcn.004361c0
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret