Function at 0x460170
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov ecx, 1
push ebx
push esi
mov esi, str.name
mov ebx, eax
push edi
lea eax, [esi + 0x27]
lea edx, [esi + 0x268]
call fcn.00463dec
test eax, eax
lea edx, [ebp - 0x10]
setne al
and eax, 1
mov byte [ebx + 0x524], al
push edx
push dword [0x4cfe34]
call sub.USER32.DLL_GetClientRect
push 0
lea ecx, [esi + 4]
push dword [0x4bb91c]
push 0xb
lea eax, [esi + 0x272]
push dword [0x4cfe34]
push 0
push 0
push 0
push 0
push 0x44a00249
push ecx
push eax
push 0x300
call sub.USER32.DLL_CreateWindowExA
mov dword [ebx], eax
lea edx, [esi + 0x280]
lea eax, [esi + 0x27]
mov ecx, 1
call fcn.00463dec
test eax, eax
je 0x460205
mov edx, 1
jmp 0x46020a
mov edx, 3
mov eax, ebx
call fcn.00460d10
mov edi, 0x400
lea edx, [esi + 0x289]
lea eax, [esi + 0x27]
mov ecx, 1
call fcn.00463dec
test eax, eax
je 0x460230
or edi, 0x20
lea edx, [esi + 0x291]
lea eax, [esi + 0x27]
xor ecx, ecx
call fcn.00463dec
test eax, eax
je 0x460247
or edi, 1
lea edx, [esi + 0xbf]
lea eax, [esi + 0x27]
xor ecx, ecx
call fcn.00463dec
test eax, eax
je 0x460284
or edi, 0x48
lea edx, [esi + 0x29a]
lea eax, [esi + 0x27]
xor ecx, ecx
call fcn.00463dec
cmp eax, 1
jne 0x460279
or edi, 0x800
cmp eax, 2
jne 0x460284
or edi, 0x1000
push edi
push 0
push 0x1036
push dword [ebx]
call sub.USER32.DLL_SendMessageA
lea eax, [esi + 0x2a4]
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.0049fdd4
add esp, 8
lea ecx, [esi + 0x2aa]
push ecx
lea eax, [ebp - 0x110]
push eax
call fcn.0049fcf8
add esp, 8
push 0xd
lea edx, [esi + 0x2b9]
push edx
lea ecx, [ebp - 0x160]
push ecx
call fcn.004a2e18
add esp, 0xc
lea eax, [ebp - 0x90]
lea edx, [esi + 4]
lea ecx, [ebp - 0x160]
push eax
push edx
lea edx, [ebp - 0x110]
push 0x80
mov eax, 0x80000000
call fcn.00463c30
movzx eax, word [0x4d310a]
imul edx, eax, 0x1e
movzx ecx, word [0x4d310e]
movzx eax, word [0x4d3108]
add ecx, edx
imul edx, eax, 0x16d
add ecx, edx
cmp byte [ebp - 0x90], 0
mov dword [0x4d3118], ecx
je 0x460341
lea ecx, [ebp - 0x8f]
push ecx
call fcn.004a471c
pop ecx
sub dword [0x4d3118], eax
push 0x800
push 0x100
push 0x21
push 0x32
call sub.USER32.DLL_GetSystemMetrics
push eax
push 0x31
call sub.USER32.DLL_GetSystemMetrics
push eax
call sub.COMCTL32.DLL_ImageList_Create
mov dword [ebx + 8], eax
push 0
push 2
push 0x21
push 0xd
push 0xd
call sub.COMCTL32.DLL_ImageList_Create
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.00460490
push 0
push 0x3c
lea ecx, [ebp - 0x19c]
lea edx, [esi + 0x2c1]
lea eax, [esi + 0x27]
call fcn.00463e18
cmp byte [ebp - 0x180], 0
je 0x460448
lea edx, [ebp - 0x180]
push edx
xor ecx, ecx
mov cl, byte [ebp - 0x181]
push ecx
xor eax, eax
mov al, byte [ebp - 0x182]
push eax
xor edx, edx
mov dl, byte [ebp - 0x183]
push edx
xor ecx, ecx
mov cl, byte [ebp - 0x184]
push ecx
xor eax, eax
mov al, byte [ebp - 0x185]
push eax
xor edx, edx
mov dl, byte [ebp - 0x186]
push edx
xor ecx, ecx
mov cl, byte [ebp - 0x187]
push ecx
xor eax, eax
mov al, byte [ebp - 0x188]
push eax
push dword [ebp - 0x18c]
push dword [ebp - 0x190]
push dword [ebp - 0x194]
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call sub.GDI32.DLL_CreateFontA
test eax, eax
je 0x460425
push 1
push eax
push 0x30
push dword [ebx]
call sub.USER32.DLL_SendMessageA
lea edx, [esi + 0x2c6]
lea eax, [esi + 0x27]
xor ecx, ecx
call fcn.00463dec
test eax, eax
je 0x460448
push eax
push 0
push 0x1024
push dword [ebx]
call sub.USER32.DLL_SendMessageA
push dword [ebx + 8]
push 1
push 0x1003
push dword [ebx]
call sub.USER32.DLL_SendMessageA
mov eax, ebx
call fcn.00460584
mov eax, ebx
call fcn.00460af8
push 5
push dword [ebx]
call sub.USER32.DLL_ShowWindow
cmp dword [0x4d27d8], 1
je 0x460480
push dword [ebx]
call sub.USER32.DLL_SetFocus
mov eax, ebx
call fcn.00460d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret