Function at 0x402e80
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp eax, 0x110
je 0x402ee0
xor edi, edi
cmp eax, 0x111
jne 0x402ec8
mov edi, edx
cmp edx, 1
je 0x403068
mov edi, 1
cmp edx, 2
je 0x403210
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [0x40c920], esi
mov dword [esp], ebx
mov dword [esp + 4], 0x3e8
call edi
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x40c920]
mov dword [ebp - 0x1c], edi
sub esp, 8
mov esi, dword [eax + 0x208]
mov dword [esp], ebx
mov dword [esp + 4], 0x3e9
call edi
and esi, 1
sub esp, 8
mov dword [esp + 8], esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x40c920]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], 0x3ea
call eax
shr edi, 1
sub esp, 8
and edi, 1
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x40c920]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], 0x3eb
call eax
shr edi, 2
sub esp, 8
and edi, 1
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x40c920]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], 0x3ec
call eax
shr edi, 3
sub esp, 8
and edi, 1
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x40c920]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], 0x3ed
call eax
shr edi, 4
sub esp, 8
and edi, 1
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, edi
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
mov esi, dword [0x40c920]
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
mov dword [ebp - 0x1c], eax
call eax
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp + 8], 0x104
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 4], 0x3e9
mov dword [esp], ebx
call eax
mov edx, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [ebp - 0x20], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edx
sub esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3ea
and esi, 1
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x20]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edx
mov ecx, esi
or ecx, 2
sub esp, 0x10
test al, 1
mov eax, dword [ebp - 0x1c]
cmovne esi, ecx
mov dword [esp + 4], 0x3eb
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x20]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edx
mov ecx, esi
or ecx, 4
sub esp, 0x10
test al, 1
mov eax, dword [ebp - 0x1c]
cmovne esi, ecx
mov dword [esp + 4], 0x3ec
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x20]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edx
mov ecx, esi
or ecx, 8
sub esp, 0x10
test al, 1
mov eax, dword [ebp - 0x1c]
cmovne esi, ecx
mov dword [esp + 4], 0x3ed
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x20]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edx
mov ecx, eax
mov eax, esi
sub esp, 0x10
or eax, 0x10
and ecx, 1
cmovne esi, eax
mov eax, dword [0x40c920]
mov dword [eax + 0x208], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x402ec8
mov dword [esp + 4], 2
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
sub esp, 8
jmp 0x402ec8