Function at 0x402019
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x410020]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, ecx
push dword [edi + 0x18]
push 0x3e9
push dword [edi + 4]
push 0x1f
push 0x25
push 0x10
push 0x1a3
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0x354]
call fcn.0040893c
push 0x9c
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
push 0
push dword [edi + 0x18]
push 0x3eb
push dword [edi + 4]
push 0x1f
push 0x25
push 0x10
push 0x188
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0x68c]
call fcn.0040893c
mov esi, 0xa3
push esi
push dword [edi + 0x18]
lea eax, [edi + 0x68c]
call fcn.00408dec
push 0
push dword [edi + 0x18]
push 0x3ec
push dword [edi + 4]
push 0x1f
push 0x25
push 0xd1
push esi
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0x9c4]
call fcn.0040893c
push 0xa4
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
push 0
push dword [edi + 0x18]
mov byte [edi + 0xccc], 1
push 0x3ed
push dword [edi + 4]
push 0x1f
push 0x25
push 0x121
push 0x7e
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0xcfc]
call fcn.0040893c
push 0x9e
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
push 0
push dword [edi + 0x18]
mov byte [edi + 0x1004], 1
push 0x3ee
push dword [edi + 4]
push 0x1f
push 0x25
push 0x121
push 0x166
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0x1034]
call fcn.0040893c
push 0xa1
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
push 0
push dword [edi + 0x18]
mov esi, str.button
push 0x3ef
push dword [edi + 4]
mov byte [edi + 0x133c], 1
push 0xd
push 0xd
push 0x121
push 0x18
push 0x50000003
push 0x40c6ec
push esi
push 0
call ebx
push 1
push 0x3ef
push dword [edi + 4]
mov dword [edi + 0x10], eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push dword [edi + 0x18]
push 0x3f0
push dword [edi + 4]
push 0x1f
push 0x25
push 0x5e
push 0x17a
push 0x50000000
push 0x40c6ec
push esi
push 0
call ebx
lea esi, [edi + 0x16a4]
call fcn.0040893c
push 0xa9
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
push 0
push dword [edi + 0x18]
mov byte [edi + 0x19ac], 1
push 0x3f1
push dword [edi + 4]
push 0x1f
push 0x25
push 0x80
push 0x127
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0x136c]
call fcn.0040893c
push 0xa2
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
push 0
push dword [edi + 0x18]
mov byte [edi + 0x1674], 1
push 0x3f2
push dword [edi + 4]
push 0x1f
push 0x25
push 0x121
push 0x189
push 0x50000000
push 0x40c6ec
push str.button
push 0
call ebx
lea esi, [edi + 0x19dc]
call fcn.0040893c
push 0x9f
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x1ce4], 1
push 0x3f3
push dword [edi + 4]
push 0x14
push 0x10a
push 0x62
push 0x6a
push 0x50000004
push 0x40c6ec
push str.edit
push esi
call ebx
push 0x40c5ec
push 0x31
push 2
push esi
push esi
push 0x86
push esi
push esi
push esi
push 0x190
push esi
push esi
push 7
push 0xe
mov dword [edi + 0x14], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push 1
push eax
push 0x30
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push esi
push 0xb4
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
push dword [edi + 0x18]
push 0x3e8
push dword [edi + 4]
push 0x1f
push 0x25
push 0x121
push 0x180
push 0x50000000
push 0x40c6ec
push str.button
push esi
call ebx
lea esi, [edi + 0x1c]
call fcn.0040893c
push 0xa0
push dword [edi + 0x18]
mov eax, esi
call fcn.00408dec
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x324], 1
push 0x3ea
push dword [edi + 4]
push 0x13
push 0x1a3
push 0x103
push 0x12
push 0x50000001
push 0x40c6ec
push str.msctls_progress32
push esi
call ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x64
push esi
push 0x406
push eax
mov dword [edi + 0xc], eax
call ebx
push esi
push esi
push 0x402
push dword [edi + 0xc]
call ebx
mov ecx, 0xe8
mov eax, 0xf7
mov dword [edi + 0x29cc], ecx
mov dword [edi + 0x29dc], ecx
lea ecx, [edi + 0x1f54]
mov dword [edi + 0x29c8], 0x12
mov dword [edi + 0x29d0], 0x13e
mov dword [edi + 0x29d4], eax
mov dword [edi + 0x29d8], 0x12c
mov dword [edi + 0x29e0], 0x1b4
mov dword [edi + 0x29e4], eax
call fcn.00403966
test al, al
push esi
jne 0x402497
push 0x40c608
push 0x40c610
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
jmp 0x40266e
lea eax, [edi + 0x226c]
push eax
call sub.MSVCR80.dll_strlen
pop ecx
mov ecx, 0x103
sub ecx, eax
push ecx
push 0xc5
push dword [edi + 0x14]
call ebx
lea eax, [esp + 0xc]
push eax
lea esi, [esp + 0x74]
mov dword [esp + 0x10], 0x104
call fcn.00409855
pop ecx
lea eax, [edi + 0x226c]
push eax
lea eax, [esp + 0x74]
push eax
lea esi, [edi + 0x29e8]
push str._sProgram_Files_s_
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [edi + 0x2aec]
push esi
push eax
call sub.MSVCR80.dll_strcpy
add esp, 0x18
push esi
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [edi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, 0x40c5e0
push ebx
push 0x9a
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x402538
push eax
lea eax, [edi + 0x1d14]
push eax
push dword [esp + 0x14]
call fcn.00409fca
add esp, 0xc
mov eax, dword [edi + 0x18]
push ebx
push 0x9b
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x402560
push eax
lea eax, [edi + 0x1d44]
push eax
push dword [esp + 0x14]
call fcn.00409fca
add esp, 0xc
and dword [esp + 0x10], 0
lea eax, [edi + 0x1d74]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
add ecx, 0xa6
movzx ecx, cx
push ebx
push ecx
push eax
mov dword [esp + 0x20], eax
call esi
test eax, eax
je 0x40259d
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
call fcn.00409fca
add esp, 0xc
inc dword [esp + 0x10]
add dword [esp + 0xc], 0x30
cmp dword [esp + 0x10], 3
jl 0x40256f
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor eax, eax
cmp dword [edi + 0x1d18], eax
push eax
je 0x4025f0
call ebx
push 1
mov esi, eax
call ebx
mov ecx, dword [edi + 0x1d20]
mov edx, dword [edi + 0x1d24]
sub esi, ecx
sub eax, edx
sar esi, 1
sar eax, 1
test esi, esi
jge 0x4025e0
xor esi, esi
test eax, eax
jge 0x4025e6
xor eax, eax
push 4
push edx
push ecx
push eax
push esi
push 0
jmp 0x402629
call ebx
push 1
mov esi, eax
call ebx
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub esi, dword [esp + 0x30]
sub ebx, dword [esp + 0x34]
sar esi, 1
xor eax, eax
sar ebx, 1
cmp esi, eax
jge 0x40261c
xor esi, esi
cmp ebx, eax
jge 0x402622
xor ebx, ebx
push 1
push eax
push eax
push ebx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor esi, esi
lea eax, [edi + 0x29e8]
mov dword [edi + 0x1f40], esi
call fcn.0040a044
cmp eax, esi
lea ecx, [edi + 0x1f4c]
mov dword [ecx], eax
jge 0x402653
mov dword [ecx], esi
mov eax, dword [edi + 0x2474]
mov dword [edi + 0x1e34], esi
mov esi, edi
mov dword [edi + 0x1f48], eax
call fcn.00402683
mov al, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aa90
mov esp, ebp
pop ebp
ret