Function at 0x43ef80
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov eax, dword [0x4d9540]
mov dword [esp + 0x28], eax
push esi
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
push edi
mov ecx, 0xfbc
jg 0x43efb3
cmp dword [eax - 4], ecx
jge 0x43eff4
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x43efbc
mov ecx, ebp
push ecx
lea ecx, [esp + 0x34]
call fcn.004012f0
test eax, eax
je 0x43eff4
mov edi, dword [esp + 0x30]
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 + 0x34]
mov dword [eax - 8], ebp
call fcn.00401350
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push 0xfbc
push eax
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x30]
call fcn.00401380
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x30]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x30]
mov ecx, 0x4d961c
mov word [edx + eax*2], 0
mov eax, dword [0x4d9540]
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x43f079
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x43f079
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x43f079
mov edx, dword [esp + 0x14]
inc esi
push esi
push 0x4d961c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00401850
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43f0ba
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43f0ba
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x43f0d2
mov edx, dword [eax - 4]
test edx, edx
jge 0x43f11b
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x43f0db
mov ecx, ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.004012f0
test eax, eax
jne 0x43f0f1
mov eax, dword [esp + 0x30]
xor edi, edi
jmp 0x43f11d
mov edi, dword [esp + 0x30]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov dword [ecx - 8], ebx
call fcn.00401350
mov eax, dword [esp + 0x30]
mov edi, eax
mov ebp, dword [eax - 8]
mov edx, dword [0x4d9540]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
xor ebx, ebx
push ebp
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ebx
call fcn.004b4600
add esp, 0x10
test eax, eax
je 0x43f21a
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], 0xa
jle 0x43f1bb
mov eax, dword [0x4d9540]
inc ebx
push ebx
lea ecx, [esp + 0x18]
push 0x4da88c
push ecx
mov dword [esp + 0x20], eax
call fcn.00401a70
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
push edx
mov edx, dword [ecx + 0x20]
push eax
push edx
call fcn.00480f80
mov eax, dword [esp + 0x30]
mov edx, dword [0x4d9544]
add esp, 0x1c
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x43f1bb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43f1bb
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, 0x4e3a5c
test eax, eax
je 0x43f1cf
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x43f1d1
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.00401420
test eax, eax
je 0x43f1fe
mov ecx, dword [esp + 0x10]
inc esi
push esi
push 0x4e3a5c
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
push edi
call fcn.004b4600
add esp, 0x10
test eax, eax
jne 0x43f14c
mov esi, dword [esp + 0x18]
push 0
push ebx
push 0x4db69c
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00480e00
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 4]
add esp, 0x10
and edx, 0xffff
push edx
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x43f27a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43f27a
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004014c0
xor eax, eax
add esp, 0x10
ret 0x10