Function at 0x470350
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x20], ebp
mov eax, dword [ebp + 0x5fc]
test eax, eax
je 0x47041d
mov ecx, dword [eax + 0x26c]
test ecx, ecx
je 0x47041d
mov eax, dword [esp + 0x38]
mov ecx, 0x400
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x1c], esi
jg 0x470396
cmp dword [eax - 4], ecx
jge 0x4703db
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x47039f
mov ecx, ebx
push ecx
lea ecx, [esp + 0x3c]
call fcn.004012f0
test eax, eax
je 0x4703db
mov edi, dword [esp + 0x38]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov dword [ecx - 8], ebx
call fcn.00401350
mov eax, dword [esp + 0x38]
push 0x400
push eax
mov eax, dword [ebp + 0x5fc]
mov ecx, dword [eax + 0x26c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x38]
call fcn.00401380
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov ecx, dword [esp + 0x38]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x38]
mov word [edx + eax*2], 0
jmp 0x470423
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, 0x4d9608
test eax, eax
je 0x4705dd
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x4705dd
mov ecx, 0x4d9610
test ecx, ecx
jne 0x47044c
mov dword [esp + 0x10], ecx
jmp 0x470457
push 0x4d9610
call esi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x38]
xor edi, edi
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x4705dd
push 0x4d9608
push esi
call fcn.004c546f
add esp, 8
test eax, eax
je 0x470497
lea esi, [eax + ebx*2]
push 0x4d9608
push esi
inc edi
call fcn.004c546f
add esp, 8
test eax, eax
jne 0x470481
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x47046f
test edi, edi
jle 0x4705dd
lea ecx, [esp + 0x38]
call fcn.00401380
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x18], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x30], ebp
cmp eax, ebp
jl 0x4704e2
cmp dword [esi - 0xc], 1
jle 0x470520
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edi
call fcn.004012f0
test eax, eax
je 0x4705d9
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x38]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00401350
mov esi, dword [esp + 0x38]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x4705d6
push 0x4d9608
push esi
call fcn.004c546f
mov edi, eax
add esp, 8
test edi, edi
je 0x4705bb
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x18]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [esi + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.004c5570
mov ecx, esi
mov esi, 0x4d9610
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x4d9608
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x38]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x2c]
add ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.004c546f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x470546
mov ebp, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x470532
mov esi, dword [esp + 0x38]
mov dword [esi - 8], ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [0x4d9540]
lea edi, [ebp + 0x600]
mov dword [esp + 0x14], ecx
mov ecx, edi
call fcn.0047a830
mov edx, dword [esp + 0x38]
xor ebx, ebx
push 0x3b
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.00452250
test eax, eax
je 0x4706ca
lea ecx, [esp + 0x14]
call fcn.00401380
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], 1
jl 0x47066a
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], 0
call fcn.00427b70
lea edx, [esp + 0x20]
push eax
push edx
mov ecx, edi
call fcn.004279c0
mov esi, dword [eax]
lea ecx, [esp + 0x28]
call fcn.004014c0
mov dword [esi + 0x10], 1
mov eax, 0x4e3a5c
test eax, eax
je 0x47067e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x470680
xor esi, esi
push esi
lea ecx, [esp + 0x18]
call fcn.00401420
test eax, eax
je 0x4706ad
mov ecx, dword [esp + 0x14]
inc esi
push esi
push 0x4e3a5c
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov edx, dword [esp + 0x38]
inc ebx
push 0x3b
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.00452250
test eax, eax
jne 0x470612
mov ecx, 0x4e3a5c
test ecx, ecx
je 0x4706de
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4706e0
xor esi, esi
push esi
lea ecx, [esp + 0x3c]
call fcn.00401420
test eax, eax
je 0x47070d
mov edx, dword [esp + 0x38]
inc esi
push esi
push 0x4e3a5c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [ebp + 0x5fc]
test eax, eax
je 0x4708d5
mov ecx, dword [eax + 0x270]
test ecx, ecx
je 0x4708d5
mov eax, dword [esp + 0x38]
mov ecx, 0x400
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x1c], esi
jg 0x470746
cmp dword [eax - 4], ecx
jge 0x47078f
mov ebx, dword [eax - 8]
cmp ebx, 0x400
jle 0x470753
mov ecx, ebx
push ecx
lea ecx, [esp + 0x3c]
call fcn.004012f0
test eax, eax
je 0x47078f
mov edi, dword [esp + 0x38]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov dword [ecx - 8], ebx
call fcn.00401350
mov eax, dword [esp + 0x38]
push 0x400
push eax
mov eax, dword [ebp + 0x5fc]
mov ecx, dword [eax + 0x270]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x38]
call fcn.00401380
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x38]
push 0x4d9610
push 0x4d9608
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
mov word [edx + eax*2], 0
call fcn.0040fcd0
mov eax, dword [0x4d9540]
lea edi, [ebp + 0x610]
mov ecx, edi
mov dword [esp + 0x10], eax
call fcn.0047a830
mov ecx, dword [esp + 0x38]
xor ebx, ebx
push 0x3b
push ebx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00452250
test eax, eax
je 0x4708cc
lea ecx, [esp + 0x10]
call fcn.00401380
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 1
jl 0x47086c
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], 0
call fcn.00427b70
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, edi
call fcn.004279c0
mov esi, dword [eax]
lea ecx, [esp + 0x28]
call fcn.004014c0
mov dword [esi + 0x10], 1
mov edx, 0x4e3a5c
test edx, edx
je 0x470880
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x470882
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.00401420
test eax, eax
je 0x4708af
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x4e3a5c
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov ecx, dword [esp + 0x38]
inc ebx
push 0x3b
push ebx
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00452250
test eax, eax
jne 0x470814
lea ecx, [esp + 0x10]
call fcn.004014c0
push 0x4e3a5c
lea ecx, [esp + 0x3c]
call fcn.00435ab0
mov eax, dword [ebp + 0x5fc]
test eax, eax
je 0x4709e5
mov ecx, dword [eax + 0x274]
test ecx, ecx
je 0x4709e5
push 0x400
lea ecx, [esp + 0x3c]
call fcn.0040f900
push 0x400
push eax
mov eax, dword [ebp + 0x5fc]
mov ecx, dword [eax + 0x274]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
call fcn.00401970
push 0x4d9610
push 0x4d9608
lea ecx, [esp + 0x40]
call fcn.0040fcd0
mov edx, dword [0x4d9540]
lea edi, [ebp + 0x620]
mov ecx, edi
mov dword [esp + 0x10], edx
call fcn.0047a830
mov eax, dword [ebp + 0x5fc]
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x4709dc
mov ecx, dword [esp + 0x38]
xor esi, esi
push 0x3b
push esi
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00452250
test eax, eax
je 0x4709dc
lea ecx, [esp + 0x10]
call fcn.00401380
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 1
jl 0x4709b5
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004277f0
mov dword [eax], 1
push 0x4e3a5c
lea ecx, [esp + 0x14]
call fcn.00435ab0
mov eax, dword [esp + 0x38]
inc esi
push 0x3b
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.00452250
test eax, eax
jne 0x470985
lea ecx, [esp + 0x10]
call fcn.004014c0
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x38]
call fcn.004014c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4