Function at 0x403820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc70
mov eax, dword [0x432018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0xc68], eax
mov edi, edx
lea eax, [ebp - 0xc1c]
mov dword [ebp - 0xc50], edi
push 0
push eax
mov dword [ebp - 0xc6c], ecx
call fcn.0040d360
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
call fcn.0040d360
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
mov dword [ebp - 0xc3c], 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0xc38], 0
movups xmmword [ebp - 0xc4c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4038b3
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc4c]
call fcn.004072b0
cmp dword [ebp - 0xc38], 8
lea eax, [ebp - 0xc4c]
push 0x208
cmovae eax, dword [ebp - 0xc4c]
mov dword [ebp - 0xc54], eax
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0040d360
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
xorps xmm0, xmm0
mov dword [ebp - 0xc24], 0
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0xc20], 0
movups xmmword [ebp - 0xc34], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403940
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc34]
call fcn.004072b0
cmp dword [ebp - 0xc20], 8
lea eax, [ebp - 0xc34]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
cmovae eax, dword [ebp - 0xc34]
push 0xffffffffffffffeb
push edi
mov dword [ebp - 0xc58], eax
call esi
push 0xfffffffffffffff4
push edi
mov dword [ebp - 0xc5c], eax
call esi
push 0xfffffffffffffff8
push edi
mov dword [ebp - 0xc60], eax
call esi
push 0xfffffffffffffffa
push edi
mov dword [ebp - 0xc64], eax
call esi
push 0xfffffffffffffffc
push edi
mov ebx, eax
call esi
push 0xfffffffffffffff0
push dword [ebp - 0xc50]
mov edi, eax
call esi
push 0xffffffffffffffec
push dword [ebp - 0xc50]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 0xc54]
push dword [ebp - 0xc58]
push dword [ebp - 0xc5c]
push dword [ebp - 0xc60]
push dword [ebp - 0xc64]
push ebx
push edi
push esi
push eax
push dword [ebp - 0xc50]
lea eax, [ebp - 0xc1c]
push dword [ebp - 0xc68]
push str._sLevelHwnd:__p:__Ix___Ix___Ix___Ix___Ix___Ix___Ix___s___s_r_n
push eax
call fcn.00406fd0
mov ecx, dword [ebp - 0xc20]
add esp, 0x34
cmp ecx, 8
jb 0x403a4d
mov edx, dword [ebp - 0xc34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b01
push ecx
push edx
call fcn.0040bf76
add esp, 8
mov ecx, dword [ebp - 0xc38]
xor eax, eax
mov dword [ebp - 0xc24], 0
mov dword [ebp - 0xc20], 7
mov word [ebp - 0xc34], ax
cmp ecx, 8
jb 0x403aa6
mov edx, dword [ebp - 0xc4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b01
push ecx
push edx
call fcn.0040bf76
add esp, 8
mov ebx, dword [ebp - 0xc6c]
lea ecx, [ebp - 0xc1c]
xorps xmm0, xmm0
lea edx, [ecx + 2]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ad0
sub ecx, edx
lea eax, [ebp - 0xc1c]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004072b0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ba30
mov esp, ebp
pop ebp
ret
call fcn.004140fb
int3