Function at 0x402019
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x412020]
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 0x15
push 0x15
push 5
push 0x1ea
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0x354]
call fcn.0040982c
push 0x9c
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
push 0
push dword [edi + 0x18]
push 0x3eb
push dword [edi + 4]
push 0x15
push 0x15
push 5
push 0x1d0
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0x68c]
call fcn.0040982c
push 0xa3
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
push 0
push dword [edi + 0x18]
push 0x3ec
push dword [edi + 4]
push 0x33
push 0x7f
push 0x109
push 0xcd
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0x9c4]
call fcn.0040982c
push 0xa4
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
push 0
push dword [edi + 0x18]
mov byte [edi + 0xccc], 1
push 0x3ed
push dword [edi + 4]
push 0x1f
push 0x25
push 0x150
push 0x7e
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0xcfc]
call fcn.0040982c
push 0x9e
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
push 0
push dword [edi + 0x18]
mov byte [edi + 0x1004], 1
push 0x3ee
push dword [edi + 4]
push 0x1f
push 0x25
push 0x150
push 0x1a5
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0x1034]
call fcn.0040982c
push 0xa1
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
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 0x150
push 0x18
push 0x50000003
push 0x40e808
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 0x78
push 0x16b
push 0x50000000
push 0x40e808
push esi
push 0
call ebx
lea esi, [edi + 0x16a4]
call fcn.0040982c
push 0xab
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
push 0
push dword [edi + 0x18]
mov byte [edi + 0x19ac], 1
push 0x3f1
push dword [edi + 4]
push 0x1f
push 0x25
push 0xca
push 0x19d
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0x136c]
call fcn.0040982c
push 0xa2
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
mov byte [edi + 0x1674], 1
push 0
push dword [edi + 0x18]
push 0x3f2
push dword [edi + 4]
push 0x1f
push 0x25
push 0x158
push 0x1cf
push 0x50000000
push 0x40e808
push str.button
push 0
call ebx
lea esi, [edi + 0x19dc]
call fcn.0040982c
push 0x9f
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x1ce4], 1
push 0x3f3
push dword [edi + 4]
push 0x1a
push 0xde
push 0x7a
push 0x7f
push 0x50000004
push 0x40e808
push str.edit
push esi
call ebx
push 0x40e658
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 0x153
push 0x1ad
push 0x50000000
push 0x40e808
push str.button
push esi
call ebx
lea esi, [edi + 0x1c]
call fcn.0040982c
push 0xa0
push dword [edi + 0x18]
mov eax, esi
call fcn.00409cdc
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x324], 1
push 0x3ea
push dword [edi + 4]
push 0x11
push 0x1c2
push 0x137
push 0x24
push 0x50000001
push 0x40e808
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, 0x11f
mov eax, 0x12f
mov dword [edi + 0x2a2c], ecx
mov dword [edi + 0x2a3c], ecx
lea ecx, [edi + 0x1fb4]
mov dword [edi + 0x2a28], 0x29
mov dword [edi + 0x2a30], 0x155
mov dword [edi + 0x2a34], eax
mov dword [edi + 0x2a38], 0x12c
mov dword [edi + 0x2a40], 0x1b4
mov dword [edi + 0x2a44], eax
call fcn.00403ba0
test al, al
push esi
jne 0x402496
push 0x40e674
push 0x40e67c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
jmp 0x402674
lea eax, [edi + 0x22cc]
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.0040a745
pop ecx
lea eax, [edi + 0x22cc]
push eax
lea eax, [esp + 0x74]
push eax
lea esi, [edi + 0x2a48]
push str._sProgram_Files_s_
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [edi + 0x2b4c]
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 ecx, edi
call fcn.004034c0
mov eax, dword [edi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, 0x40e64c
push ebx
push 0x9a
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x40253e
push eax
lea eax, [edi + 0x1d14]
push eax
push dword [esp + 0x14]
call fcn.0040aeba
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 0x402566
push eax
lea eax, [edi + 0x1d44]
push eax
push dword [esp + 0x14]
call fcn.0040aeba
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 0x4025a3
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
call fcn.0040aeba
add esp, 0xc
inc dword [esp + 0x10]
add dword [esp + 0xc], 0x30
cmp dword [esp + 0x10], 5
jl 0x402575
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor eax, eax
cmp dword [edi + 0x1d18], eax
push eax
je 0x4025f6
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 0x4025e6
xor esi, esi
test eax, eax
jge 0x4025ec
xor eax, eax
push 4
push edx
push ecx
push eax
push esi
push 0
jmp 0x40262f
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 0x402622
xor esi, esi
cmp ebx, eax
jge 0x402628
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 + 0x2a48]
mov dword [edi + 0x1fa0], esi
call fcn.0040af34
cmp eax, esi
lea ecx, [edi + 0x1fac]
mov dword [ecx], eax
jge 0x402659
mov dword [ecx], esi
mov eax, dword [edi + 0x24d4]
mov dword [edi + 0x1e94], esi
mov esi, edi
mov dword [edi + 0x1fa8], eax
call fcn.00402689
mov al, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bfb6
mov esp, ebp
pop ebp
ret