Function at 0x402032
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
mov eax, dword [0x411020]
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 0x10
push 0x10
push 6
push 0x1ab
push 0x50000000
push 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0x354]
call fcn.0040897c
push 0x9c
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
push 0
push dword [edi + 0x18]
push 0x3eb
push dword [edi + 4]
push 0x13
push 0x13
push 3
push 0x18b
push 0x50000000
push 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0x68c]
call fcn.0040897c
push 0xa3
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
push 0
push dword [edi + 0x18]
push 0x3ec
push dword [edi + 4]
push 0x42
push 0xc3
push 0xe4
push 0x83
push 0x50000000
push 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0x9c4]
call fcn.0040897c
push 0xa4
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
push 0
push dword [edi + 0x18]
mov byte [edi + 0xccc], 1
push 0x3ed
push dword [edi + 4]
push 0x1f
push 0x25
push 0x12b
push 0x7e
push 0x50000000
push 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0xcfc]
call fcn.0040897c
push 0x9e
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
push 0
push dword [edi + 0x18]
mov byte [edi + 0x1004], 1
push 0x3ee
push dword [edi + 4]
push 0x1f
push 0x25
push 0x12b
push 0x166
push 0x50000000
push 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0x1034]
call fcn.0040897c
push 0xa1
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
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 0x12b
push 0x18
push 0x50000003
push 0x40d6dc
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 0x40d6dc
push esi
push 0
call ebx
lea esi, [edi + 0x16a4]
call fcn.0040897c
push 0xa9
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
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 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0x136c]
call fcn.0040897c
push 0xa2
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
mov byte [edi + 0x1674], 1
push 0
push dword [edi + 0x18]
push 0x3f2
push dword [edi + 4]
push 0x1f
push 0x25
push 0x12b
push 0x189
push 0x50000000
push 0x40d6dc
push str.button
push 0
call ebx
lea esi, [edi + 0x19dc]
call fcn.0040897c
push 0x9f
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
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 0x40d6dc
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 + 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 0x40d6dc
push str.button
push esi
call ebx
lea esi, [edi + 0x1c]
call fcn.0040897c
push 0xa0
push dword [edi + 0x18]
mov eax, esi
call fcn.00408e2c
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 0x40d6dc
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 + 0x2ad0], ecx
mov dword [edi + 0x2ae0], ecx
lea ecx, [edi + 0x1f54]
mov dword [edi + 0x2acc], 0x12
mov dword [edi + 0x2ad4], 0x13e
mov dword [edi + 0x2ad8], eax
mov dword [edi + 0x2adc], 0x12c
mov dword [edi + 0x2ae4], 0x1b4
mov dword [edi + 0x2ae8], eax
call fcn.0040397b
test al, al
push esi
jne 0x4024b2
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 0x40268c
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.00409895
pop ecx
lea eax, [edi + 0x226c]
push eax
lea eax, [esp + 0x74]
push eax
lea esi, [edi + 0x2aec]
push str._sProgram_Files_s_
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [edi + 0x2bf0]
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, 0x40d5e0
push ebx
push 0x9a
push eax
mov dword [esp + 0x18], eax
call esi
test eax, eax
je 0x402553
push eax
lea eax, [edi + 0x1d14]
push eax
push dword [esp + 0x14]
call fcn.0040a00a
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 0x40257b
push eax
lea eax, [edi + 0x1d44]
push eax
push dword [esp + 0x14]
call fcn.0040a00a
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 0x4025b8
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
call fcn.0040a00a
add esp, 0xc
inc dword [esp + 0x10]
add dword [esp + 0xc], 0x30
cmp dword [esp + 0x10], 3
jl 0x40258a
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor eax, eax
cmp dword [edi + 0x1d18], eax
push eax
je 0x40260e
call ebx
push 1
mov esi, eax
call ebx
mov ecx, dword [edi + 0x1d24]
mov edx, dword [edi + 0x1d20]
add ecx, 5
sub esi, edx
sub eax, ecx
sar esi, 1
sar eax, 1
test esi, esi
jge 0x4025fe
xor esi, esi
test eax, eax
jge 0x402604
xor eax, eax
push 4
push ecx
push edx
push eax
push esi
push 0
jmp 0x402647
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 0x40263a
xor esi, esi
cmp ebx, eax
jge 0x402640
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 + 0x2aec]
mov dword [edi + 0x1f40], esi
call fcn.0040a084
cmp eax, esi
lea ecx, [edi + 0x1f4c]
mov dword [ecx], eax
jge 0x402671
mov dword [ecx], esi
mov eax, dword [edi + 0x2474]
mov dword [edi + 0x1e34], esi
mov esi, edi
mov dword [edi + 0x1f48], eax
call fcn.004026a1
mov al, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040aad0
mov esp, ebp
pop ebp
ret