Function at 0x4045f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, dword [0x40b108]
push edi
push 0x24
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x40462b
push 0x10
push 0x3c
push 0x157
push esi
call fcn.00401660
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1d
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x404877
lea eax, [ebp - 0x5c]
push eax
call fcn.004016d0
add esp, 4
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x404877
mov esi, dword [0x40b108]
push 0x25
push esi
call ebx
mov edi, eax
test edi, edi
je 0x404610
push 0xe
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x404859
lea eax, [ebp - 0x20]
push eax
call fcn.004016d0
add esp, 4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x404859
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x40b430]
push dword [eax]
call fcn.004055d0
add esp, 8
mov dword [ebp - 4], eax
xor esi, esi
test eax, eax
je 0x40470c
lea ecx, [ebp - 0x20]
push ecx
push dword [eax + 4]
call fcn.004055d0
mov esi, eax
add esp, 8
test esi, esi
je 0x40470c
push 4
push 0x154
push 0x15a
push dword [0x40b108]
call fcn.00401660
add esp, 0x10
cmp eax, 6
jne 0x40488c
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x40b430]
add eax, 0xc
push eax
call fcn.00406300
add esp, 8
test eax, eax
je 0x40480f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [0x40b430]
add eax, 0xc
push eax
call fcn.00406410
add esp, 0xc
test eax, eax
je 0x40480f
push 2
push dword [0x40b104]
call ebx
push 3
push dword [0x40b104]
mov edi, eax
call ebx
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x4047d5
test esi, esi
jne 0x4047c9
lea eax, [ebp - 0x20]
push eax
call fcn.00405410
add esp, 4
test eax, eax
je 0x40488c
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
test ebx, ebx
je 0x40488c
xor eax, eax
test edi, edi
je 0x4047a5
push edi
call fcn.00401590
add esp, 4
mov ecx, dword [ebp - 4]
cmp ecx, eax
jne 0x4047c9
push dword [ecx + 4]
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.00404290
add esp, 0xc
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x5c]
push eax
call fcn.00405410
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x40480f
lea eax, [ebp - 0x20]
push eax
call fcn.00405410
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
jne 0x40482f
lea eax, [ebp - 4]
push eax
call fcn.004056b0
add esp, 4
push 0x10
push 0x3c
push 0x157
push dword [0x40b108]
call fcn.00401660
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x40b430]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [0x40b430]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea eax, [ebp - 0x5c]
push dword [ebp - 4]
push eax
push edi
call fcn.00404290
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x154
push 0x15e
push esi
call fcn.00401660
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x154
push 0x15d
push esi
call fcn.00401660
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret