Function at 0x40203d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x168], 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 0x23
push eax
push 0x1d4
push 0x50000000
push 0x40d8a8
push str.button
push eax
call ebx
lea esi, [edi + 0x354]
call fcn.0040951c
push 0x9c
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
xor eax, eax
push eax
push dword [edi + 0x18]
push 0x3eb
push dword [edi + 4]
push 0x20
push 0x23
push eax
push 0x1b1
push 0x50000000
push 0x40d8a8
push str.button
push eax
call ebx
lea esi, [edi + 0x68c]
call fcn.0040951c
push 0xa3
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
push 0
push dword [edi + 0x18]
push 0x3ec
push dword [edi + 4]
push 0x1f
push 0x25
push 0x14b
push 0x132
push 0x50000000
push 0x40d8a8
push str.button
push 0
call ebx
lea esi, [edi + 0x9c4]
call fcn.0040951c
push 0xa4
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
push 0
push dword [edi + 0x18]
mov byte [edi + 0xccc], 1
push 0x3ed
push dword [edi + 4]
push 0x1f
push 0x25
push 0xdf
push 0x124
push 0x50000000
push 0x40d8a8
push str.button
push 0
call ebx
lea esi, [edi + 0xcfc]
call fcn.0040951c
push 0x9e
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
push 0
push dword [edi + 0x18]
mov byte [edi + 0x1004], 1
push 0x3ee
push dword [edi + 4]
push 0x17
push 0x53
push 0x14a
push 0xeb
push 0x50000000
push 0x40d8a8
push str.button
push 0
call ebx
lea esi, [edi + 0x1034]
call fcn.0040951c
push 0xa1
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
push 0
push dword [edi + 0x18]
mov esi, 0x40d8a8
push 0x3ef
push dword [edi + 4]
mov byte [edi + 0x133c], 1
push 0xd
push 0xd
push 0xdf
push 0xbe
push 0x50000003
push esi
push str.button
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 0xcc
push 0x160
push 0x50000000
push esi
push str.button
push 0
call ebx
lea esi, [edi + 0x16a4]
call fcn.0040951c
push 0xab
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
push 0
push dword [edi + 0x18]
mov byte [edi + 0x19ac], 1
push 0x3f1
push dword [edi + 4]
push 0x1f
push 0x25
push 0xf3
push 0x160
push 0x50000000
push 0x40d8a8
push str.button
push 0
call ebx
lea esi, [edi + 0x136c]
call fcn.0040951c
push 0xa2
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
push 0
push dword [edi + 0x18]
mov byte [edi + 0x1674], 1
push 0x3f2
push dword [edi + 4]
push 0x1f
push 0x25
push 0x14b
push 0xd4
push 0x50000000
push 0x40d8a8
push str.button
push 0
call ebx
lea esi, [edi + 0x19dc]
call fcn.0040951c
push 0x9f
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x1ce4], 1
push 0x3f3
push dword [edi + 4]
push 0x12
push 0x12a
push 0xd1
push 0x2b
push 0x50000004
push 0x40d8a8
push str.edit
push esi
call ebx
push 0x40d5ec
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 + 0x10]
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 + 0x30]
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x40]
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0xb4
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
push dword [edi + 0x18]
mov eax, 0x14a
push 0x3e8
push dword [edi + 4]
push 0x20
push 0x53
push eax
push eax
push 0x50000000
push 0x40d8a8
push str.button
push esi
call ebx
lea esi, [edi + 0x1c]
call fcn.0040951c
push 0xa0
push dword [edi + 0x18]
mov eax, esi
call fcn.004099cc
xor esi, esi
push esi
push dword [edi + 0x18]
mov byte [edi + 0x324], 1
push 0x3ea
push dword [edi + 4]
push 0x13
push 0x1a1
push 0xb6
push 0x1f
push 0x50000001
push 0x40d8a8
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, 0x8c
mov eax, 0x9b
mov dword [edi + 0x29fc], ecx
mov dword [edi + 0x2a0c], ecx
lea ecx, [edi + 0x1f84]
mov dword [edi + 0x29f8], 0x1e
mov dword [edi + 0x2a00], 0x14a
mov dword [edi + 0x2a04], eax
mov dword [edi + 0x2a08], 0x12c
mov dword [edi + 0x2a10], 0x1b4
mov dword [edi + 0x2a14], eax
call fcn.00404155
test al, al
push esi
jne 0x4024c1
push 0x40d608
push 0x40d610
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor al, al
jmp 0x4026ea
lea eax, [edi + 0x229c]
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 + 0x6c]
mov dword [esp + 0x10], 0x104
call fcn.0040a439
pop ecx
lea eax, [edi + 0x229c]
push eax
lea eax, [esp + 0x6c]
push eax
lea esi, [edi + 0x2a18]
push str._sProgram_Files_s_
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [edi + 0x2b1c]
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.00403b2a
mov eax, dword [edi + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, 0x40d5e0
push ebx
push 0x9a
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x402569
push eax
lea eax, [edi + 0x1d14]
push eax
push dword [esp + 0x14]
call fcn.0040abae
add esp, 0xc
mov eax, dword [edi + 0x18]
push ebx
push 0xae
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x402591
push eax
lea eax, [edi + 0x1d44]
push eax
push dword [esp + 0x14]
call fcn.0040abae
add esp, 0xc
mov eax, dword [edi + 0x18]
push ebx
push 0xb0
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x4025b9
push eax
lea eax, [edi + 0x1d74]
push eax
push dword [esp + 0x14]
call fcn.0040abae
add esp, 0xc
mov eax, dword [edi + 0x18]
push ebx
push 0xac
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x4025e1
push eax
lea eax, [edi + 0x1da4]
push eax
push dword [esp + 0x14]
call fcn.0040abae
add esp, 0xc
mov eax, dword [edi + 0x18]
push ebx
push 0xaf
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x402609
push eax
lea eax, [edi + 0x1dd4]
push eax
push dword [esp + 0x14]
call fcn.0040abae
add esp, 0xc
mov ebx, dword [edi + 0x18]
push str.Icon
push 0x6b
push ebx
call esi
xor esi, esi
cmp eax, esi
je 0x40262d
push eax
lea eax, [edi + 0x1e04]
push eax
push ebx
call fcn.0040abae
add esp, 0xc
cmp dword [edi + 0x1d18], esi
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
je 0x40266e
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 0x40265e
xor esi, esi
test eax, eax
jge 0x402664
xor eax, eax
push 4
push edx
push ecx
push eax
push esi
push 0
jmp 0x4026a7
call ebx
push 1
mov esi, eax
call ebx
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
sub esi, dword [esp + 0x28]
sub ebx, dword [esp + 0x2c]
sar esi, 1
xor eax, eax
sar ebx, 1
cmp esi, eax
jge 0x40269a
xor esi, esi
cmp ebx, eax
jge 0x4026a0
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 + 0x2a18]
mov dword [edi + 0x1f70], esi
call fcn.0040ac28
cmp eax, esi
lea ecx, [edi + 0x1f7c]
mov dword [ecx], eax
jge 0x4026d1
mov dword [ecx], esi
mov eax, dword [edi + 0x24a4]
mov dword [edi + 0x1f78], eax
mov dword [edi + 0x1e64], esi
call fcn.004026ff
mov al, 1
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ba0c
mov esp, ebp
pop ebp
ret