Function at 0x4c1730
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x28
mov eax, dword [0x546560]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x553dd8
mov dword [esp + 0x18], edi
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4c1789
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4c1789
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4c1789
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x553dd8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
push ecx
mov ecx, esp
mov edx, dword [eax - 0xc]
test edx, edx
jl 0x4c17a9
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4c17bb
mov edx, dword [0x546560]
mov dword [ecx], edx
mov eax, dword [esp + 0x14]
push eax
call fcn.00405920
push ecx
lea eax, [edi + 0x5c]
mov ecx, esp
push eax
call fcn.00405440
mov ecx, 0x55e54c
call fcn.0048ea10
mov eax, dword [esp + 0x10]
mov ecx, 0x7d01
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4c17ea
cmp dword [eax - 4], ecx
jge 0x4c1833
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4c17f3
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
jne 0x4c1805
xor esi, esi
jmp 0x4c1835
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [edi + 4]
push 0x3ea
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7d00
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004055c0
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call ebp
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], si
mov eax, 0x5481ec
test eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x4c1a3a
push eax
call ebp
mov ebx, eax
cmp ebx, esi
je 0x4c1a3a
mov ecx, 0x553d98
test ecx, ecx
jne 0x4c18ad
mov dword [esp + 0x14], esi
jmp 0x4c18b8
push 0x553d98
call ebp
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x20], eax
jae 0x4c1a36
push 0x5481ec
push esi
call fcn.0053176f
add esp, 8
test eax, eax
je 0x4c18f8
lea esi, [eax + ebx*2]
push 0x5481ec
push esi
inc edi
call fcn.0053176f
add esp, 8
test eax, eax
jne 0x4c18e2
push esi
call ebp
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x4c18d0
test edi, edi
jle 0x4c1a36
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x1c], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x28], ebp
cmp eax, ebp
jl 0x4c193f
cmp dword [esi - 0xc], 1
jle 0x4c197d
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00405530
test eax, eax
je 0x4c1a36
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
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 + 0x20]
push ecx
call fcn.00405590
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x20], eax
jae 0x4c1a33
push 0x5481ec
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
test edi, edi
je 0x4c1a18
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x1c]
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 + 0x30], eax
call fcn.00531870
mov ecx, esi
mov esi, 0x553d98
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x5481ec
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x30]
add ebp, eax
mov dword [esp + 0x30], ebp
call fcn.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4c19a3
mov ebp, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x4c198f
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0xa
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.004b5ed0
mov ebx, dword [esp + 0x40]
mov eax, 0x553dd8
add esp, 0xc
test eax, eax
je 0x4c1a66
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4c1a68
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.00405660
test eax, eax
je 0x4c1a95
mov ecx, dword [esp + 0x10]
inc esi
push esi
push 0x553dd8
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb0
xor esi, esi
test ebx, ebx
jle 0x4c1b6e
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
lea eax, [edx + esi*4]
push eax
call fcn.00405440
cmp dword [edi + 0x4c], 3
jne 0x4c1ac3
lea ecx, [esp + 0x18]
push ecx
call fcn.00518dd0
add esp, 4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x20]
lea eax, [edx + esi*4]
push eax
call fcn.00405440
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c1b53
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx - 8]
test edx, edx
je 0x4c1b53
push 0
push ecx
mov ecx, dword [edi + 0x5c]
push eax
push ecx
call fcn.0048dec0
add esp, 0x10
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0x546cdc
push edx
push 0x546814
push eax
push ecx
call fcn.00412f10
lea edx, [esp + 0x2c]
push eax
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00412f10
push eax
lea ecx, [esp + 0x14]
call fcn.00413220
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
inc esi
cmp esi, ebx
jl 0x4c1a9f
mov ecx, dword [edi + 4]
push 0x3ea
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [edi + 0x4c], 3
jne 0x4c1b94
call fcn.004cb410
lea ecx, [esp + 0x2c]
call fcn.00405350
lea ecx, [esp + 0x10]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret