Function at 0x40c870
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x18
push ebx
mov eax, 1
push ebp
push esi
test byte [0x50458c], al
jne 0x40c8a0
or dword [0x50458c], eax
push 0x4c5280
mov dword [0x504588], 0
call fcn.00498d7a
add esp, 4
mov eax, dword [0x504588]
mov ebp, dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
jne 0x40c8bb
push 0xe7ffff
call ebp
mov dword [0x504588], eax
push eax
mov eax, dword [edi + 4]
push 0xfffffffffffffff6
push eax
call dword [sym.imp.USER32.dll_SetClassLongW]
mov ecx, dword [edi + 4]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [edi + 4]
or eax, 0x8000000
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xe7ffff
call ebp
mov dword [edi + 0x58], eax
cmp dword [0x4fa318], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x10], 0xa0
mov dword [esp + 0x14], 0x19
mov dword [esp + 0x18], 0xda
mov dword [esp + 0x1c], 0x2b
mov dword [esp + 0xc], eax
lea esi, [edi + 0x2c]
jne 0x40c92d
mov dword [0x4fa318], str.BUTTON
lea ecx, [esi + 0x20]
push ecx
push 0x4fd4dc
mov ebx, 0x4fa2e8
call fcn.0040e3b0
add esp, 8
movzx ebx, ax
mov eax, 0x86
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x5000000b
push 0x4dbef8
lea edx, [esp + 0x20]
push edx
push eax
mov eax, esi
call fcn.0040e2e0
mov ecx, dword [edi + 0x90]
mov edx, dword [edi + 0x30]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ecx
push 0x30
push edx
call esi
push 0xe7ffff
call ebp
mov dword [edi + 0x88], eax
cmp dword [0x4fa3a8], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x10], 0xe1
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0xeb
mov dword [esp + 0x1c], 0xd
mov dword [esp + 0xc], eax
lea ebp, [edi + 0x5c]
jne 0x40c9ca
mov dword [0x4fa3a8], str.BUTTON
lea ecx, [ebp + 0x20]
push ecx
push 0x4fd4dc
mov ebx, 0x4fa378
call fcn.0040e3b0
add esp, 8
movzx ebx, ax
mov eax, 0x6a
push eax
mov eax, dword [esp + 0x10]
push 0
push 0x5000000b
push 0x4d6464
lea edx, [esp + 0x20]
push edx
push eax
mov eax, ebp
call fcn.0040e2e0
mov ecx, dword [0x4fd4e0]
mov eax, dword [edi + 4]
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push ecx
push 0x89
push eax
push 0x12
push 0x3a
mov ebp, 0x1e
push ebp
push 0xaa
push 0x40000000
push 0x4dbf04
push str.BUTTON
push 0
mov dword [esp + 0x40], 0xaa
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0xe4
mov dword [esp + 0x4c], 0x30
call ebx
push 1
mov dword [edi + 0x8c], eax
mov edx, dword [edi + 0x90]
push edx
push 0x30
push eax
call esi
mov ecx, dword [0x4fd4e0]
mov eax, dword [edi + 4]
push 0
push ecx
push 0x88
push eax
push 0x64
push 0x5a
push ebp
push 0x32
push 0x40000203
push 0x4d6464
push str.COMBOBOX
push 0
mov dword [esp + 0x40], 0x32
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0x8c
mov dword [esp + 0x4c], 0x82
call ebx
push 0x4dbf0c
push 0
push 0x143
mov edx, eax
push edx
mov dword [edi + 0x9c], eax
call esi
mov eax, dword [edi + 0x9c]
push str._tN_Y
push 0
push 0x143
push eax
call esi
push 0x4dbf24
push 0
push 0x143
mov ecx, dword [edi + 0x9c]
push ecx
call esi
mov edx, dword [edi + 0x9c]
push str._NhT
push 0
push 0x143
push edx
call esi
mov eax, dword [edi + 0x9c]
push 0
push 0
push 0x14e
push eax
call esi
mov ecx, dword [edi + 0x90]
mov edx, dword [edi + 0x9c]
push 1
push ecx
push 0x30
push edx
call esi
push 0x4dbf3c
push 0x4dbf3c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [edi + 0x94]
mov ebx, eax
call fcn.00403650
mov eax, dword [0x4fd4e4]
push 0x84
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x98], eax
push 0
mov dword [edi + 0xa0], 0
call esi
push 1
mov ebx, eax
call esi
mov ecx, dword [edi + 4]
push 0
push 0xa
push 1
add ebx, 0xffffff06
push ecx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], eax
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
lea eax, [ebp - 0x1d]
pop ebp
pop ebx
add esp, 0x18
ret