Function at 0x404387
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
push edi
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 4]
call dword [0x417344]
test eax, eax
je 0x40442d
push 0x419a88
lea eax, [ebp - 0x1c]
push eax
call dword [0x41703c]
test eax, eax
jne 0x40442d
mov esi, dword [0x4173c0]
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x4043eb
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [0x417370]
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
and eax, 0xff
cmp eax, 3
je 0x404429
cmp eax, 4
je 0x404429
cmp eax, 5
je 0x404429
cmp eax, 6
je 0x404429
cmp eax, 7
je 0x404429
cmp eax, 8
je 0x404429
cmp eax, 9
je 0x404429
cmp eax, 0xd
je 0x404429
cmp eax, 0xe
je 0x404429
cmp eax, 0xf
jne 0x40442d
and byte [ebx + 0x58], 0xfe
push 0x7f89
xor edi, edi
push edi
call dword [0x417348]
test byte [ebx + 0x58], 1
mov dword [ebx + 0x2c], eax
je 0x4044d9
push dword [ebx + 4]
call dword [0x4172a4]
push edi
push edi
push 0x31
push eax
call dword [0x4173b8]
mov dword [ebx + 0x34], eax
cmp eax, edi
jne 0x40446e
push 0xd
call dword [0x417018]
mov dword [ebx + 0x34], eax
mov esi, dword [ebx + 0x34]
cmp esi, edi
je 0x4044d9
cmp dword [ebx + 0x30], edi
jne 0x4044d9
push 0x58
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x98], edi
call fcn.0040f5f0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push 0x5c
push esi
call dword [0x41701c]
mov eax, dword [ebx + 0x54]
and eax, 0x30
cmp al, 0x30
jne 0x4044b8
mov dword [ebp - 0x88], 0x2bc
jmp 0x4044c5
test byte [ebx + 0x54], 1
jne 0x4044c5
mov byte [ebp - 0x83], 1
lea eax, [ebp - 0x98]
push eax
call dword [0x417020]
or byte [ebx + 0x58], 8
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 4]
push ecx
mov ecx, esp
push edi
push ecx
mov dword [ecx], edi
mov ecx, esp
push eax
push 0x419b50
lea esi, [ebx + 0x48]
push esi
mov dword [ecx], edi
call fcn.00403d6e
cmp dword [ebx + 0x24], edi
jne 0x404583
push dword [ebx + 4]
call dword [0x417350]
cmp eax, edi
jle 0x404583
inc eax
push 2
push eax
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 4], eax
call fcn.00403ddd
pop ecx
pop ecx
cmp eax, 0x200
jbe 0x404536
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.00403dbc
jmp 0x404542
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x40456a
push dword [ebp - 4]
push eax
push dword [ebx + 4]
call dword [0x417354]
test eax, eax
jle 0x40456a
push dword [ebp - 8]
mov eax, ebx
call fcn.00403e02
lea eax, [ebp - 0x29c]
cmp dword [ebp - 0x2a0], eax
je 0x404583
lea eax, [ebp - 0x2a0]
call fcn.0040738d
mov eax, ebx
call fcn.00403f62
cmp dword [ebx + 0x28], edi
jne 0x4045aa
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x4045aa
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4045cf
push eax
mov esi, ebx
call fcn.00404142
jmp 0x4045cf
push edi
push 1
push 0x401
push dword [esi]
call dword [0x4173b8]
lea eax, [ebx + 0x38]
push eax
push ecx
mov ecx, dword [ebx + 0x28]
mov eax, esp
mov dword [eax], ecx
push dword [ebx + 4]
push esi
call fcn.004041de
test byte [ebx + 0x58], 1
je 0x404674
push 0x419a98
push 0x80000001
mov eax, 0x2001f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00404260
test eax, eax
jne 0x404666
mov word [ebp - 0x34], ax
lea edi, [ebp - 0x32]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x419af4
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
lea edi, [ebp - 0x34]
mov dword [ebp - 4], 0xc
call fcn.0040429e
test eax, eax
jne 0x404636
mov eax, edi
call fcn.00404306
cmp eax, 0xffffffff
je 0x404636
mov dword [ebx + 0x4c], eax
push 0x419b10
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
lea edi, [ebp - 0x34]
mov dword [ebp - 4], 0xc
call fcn.0040429e
test eax, eax
jne 0x404664
mov eax, edi
call fcn.00404306
cmp eax, 0xffffffff
je 0x404664
mov dword [ebx + 0x50], eax
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x404674
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret