Function at 0x40206b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x416020]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
xor eax, eax
push eax
mov edi, ecx
push dword [edi + 0x18]
push 0x3e9
push dword [edi + 4]
push 0x20
push 0x2f
push eax
push 0x198
push 0x50000000
push 0x4118b8
push str.button
push eax
call ebx
lea esi, [edi + 0x354]
call fcn.0040c0ec
push 0x9c
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
xor eax, eax
push eax
push dword [edi + 0x18]
push 0x3eb
push dword [edi + 4]
push 0x20
push 0x2f
push eax
push 0x169
push 0x50000000
push 0x4118b8
push str.button
push eax
call ebx
lea esi, [edi + 0x68c]
call fcn.0040c0ec
mov esi, 0xa3
push esi
push dword [edi + 0x18]
lea eax, [edi + 0x68c]
call fcn.0040c59c
push 0
push dword [edi + 0x18]
push 0x3ec
push dword [edi + 4]
push 0x1f
push 0x25
push 0xd1
push esi
push 0x50000000
push 0x4118b8
push str.button
push 0
call ebx
lea esi, [edi + 0x9c4]
call fcn.0040c0ec
push 0xa4
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
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 0x4118b8
push str.button
push 0
call ebx
lea esi, [edi + 0xcfc]
call fcn.0040c0ec
push 0x9e
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
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 0x4118b8
push str.button
push 0
call ebx
lea esi, [edi + 0x1034]
call fcn.0040c0ec
push 0xa1
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
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 0x4118b8
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 0x172
push 0x50000000
push 0x4118b8
push esi
push 0
call ebx
lea esi, [edi + 0x16a4]
call fcn.0040c0ec
push 0xab
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
push 0
push dword [edi + 0x18]
mov byte [edi + 0x19ac], 1
push 0x3f1
push dword [edi + 4]
push 0x1f
push 0x25
push 0x9d
push 0x153
push 0x50000000
push 0x4118b8
push str.button
push 0
call ebx
lea esi, [edi + 0x136c]
call fcn.0040c0ec
push 0xa2
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
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 0x4118b8
push str.button
push 0
call ebx
lea esi, [edi + 0x19dc]
call fcn.0040c0ec
push 0x9f
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x1ce4], 1
push 0x3f3
push dword [edi + 4]
push 0x14
push 0xfa
push 0x62
push 0x6a
push 0x50000004
push 0x4118b8
push str.edit
push esi
call ebx
push 0x411688
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 0x4118b8
push str.button
push esi
call ebx
lea esi, [edi + 0x1c]
call fcn.0040c0ec
push 0xa0
push dword [edi + 0x18]
mov eax, esi
call fcn.0040c59c
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 0x4118b8
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 + 0x2a2c], ecx
mov dword [edi + 0x2a3c], ecx
lea ecx, [edi + 0x1fb4]
mov dword [edi + 0x2a28], 0x12
mov dword [edi + 0x2a30], 0x13e
mov dword [edi + 0x2a34], eax
mov dword [edi + 0x2a38], 0x12c
mov dword [edi + 0x2a40], 0x1b4
mov dword [edi + 0x2a44], eax
call fcn.00403d57
test al, al
push esi
jne 0x4024e7
push 0x4116a4
push 0x4116ac
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
jmp 0x4026c5
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.0040d005
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.00403528
mov eax, dword [edi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, 0x41167c
push ebx
push 0x9a
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x40258f
push eax
lea eax, [edi + 0x1d14]
push eax
push dword [esp + 0x14]
call fcn.0040d77a
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 0x4025b7
push eax
lea eax, [edi + 0x1d44]
push eax
push dword [esp + 0x14]
call fcn.0040d77a
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 0x4025f4
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
call fcn.0040d77a
add esp, 0xc
inc dword [esp + 0x10]
add dword [esp + 0xc], 0x30
cmp dword [esp + 0x10], 5
jl 0x4025c6
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor eax, eax
cmp dword [edi + 0x1d18], eax
push eax
je 0x402647
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 0x402637
xor esi, esi
test eax, eax
jge 0x40263d
xor eax, eax
push 4
push edx
push ecx
push eax
push esi
push 0
jmp 0x402680
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 0x402673
xor esi, esi
cmp ebx, eax
jge 0x402679
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.0040d7f4
cmp eax, esi
lea ecx, [edi + 0x1fac]
mov dword [ecx], eax
jge 0x4026aa
mov dword [ecx], esi
mov eax, dword [edi + 0x24d4]
mov dword [edi + 0x1e94], esi
mov esi, edi
mov dword [edi + 0x1fa8], eax
call fcn.004026da
mov al, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e876
mov esp, ebp
pop ebp
ret