Function at 0x408e10
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, 0x338
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov esi, dword [ecx + 8]
cmp eax, 0x110
je 0x408e88
cmp eax, 0x111
je 0x408e50
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx eax, si
cmp si, 1
je 0x409168
cmp eax, 2
jne 0x408e3d
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 4
mov dword [ebp - 0x314], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7db
call ebx
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d8
call ebx
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d9
call ebx
sub esp, 8
mov dword [ebp - 0x31c], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7da
call ebx
lea ebx, [ebp - 0x216]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
sub esp, 8
mov dword [ebp - 0x320], eax
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x588
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
call edi
mov eax, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
mov dword [ebp - 0x310], eax
call eax
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x589
mov edx, dword [ebp - 0x314]
mov dword [esp], edx
call edi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
mov eax, dword [ebp - 0x310]
call eax
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x58a
mov edx, dword [ebp - 0x314]
mov dword [esp], edx
call edi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
mov edi, dword [ebp - 0x310]
call edi
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov eax, dword [0x41f704]
mov dword [esp], eax
call edi
movzx edx, word [ebp - 0x2bc]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x40902d
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x14e
mov eax, dword [ebp - 0x310]
call eax
sub esp, 0x10
mov dword [esp + 0x14], 0x41e6a0
mov eax, dword [ebp - 0x2c0]
add eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x310], eax
fild dword [ebp - 0x310]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], ebx
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x318]
mov esi, dword [sym.imp.user32.dll_SetWindowTextW]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 0x14], 0x41e6a0
fild dword [ebp - 0x2c4]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], ebx
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 0x14], 0x41e6a0
mov eax, dword [ebp - 0x2c0]
neg eax
mov dword [ebp - 0x310], eax
fild dword [ebp - 0x310]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], ebx
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x408e3d
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7db
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp + 4], 0x7d8
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [ebp - 0x314], eax
mov dword [esp + 4], 0x7d9
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [ebp - 0x320], eax
mov dword [esp + 4], 0x7da
mov dword [esp], edi
call ebx
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x324], eax
sub esp, 8
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov eax, dword [0x41f704]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x310], eax
call eax
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x31c], 0
sub esp, 0x10
test byte [ebp - 0x2d0], 0x20
je 0x409238
xor eax, eax
cmp word [ebp - 0x2cc], 0
setne al
mov dword [ebp - 0x31c], eax
mov dword [esp], edx
lea ebx, [ebp - 0x216]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov eax, dword [ebp - 0x310]
call eax
movzx eax, word [eax + eax + 0x411b30]
sub esp, 0x10
mov word [ebp - 0x2bc], ax
mov dword [esp + 8], 0xff
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [ebp - 0x314], eax
call eax
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, ebx
sub esp, 0xc
call dbg.number_from_string
fld dword [ebp - 0x304]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x300]
cmp eax, 1
je 0x409780
cmp eax, 2
je 0x409770
xor edx, edx
test eax, eax
je 0x409720
fstp st(0)
mov dword [ebp - 0x2c0], edx
mov dword [esp + 8], 0xff
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x320]
mov dword [esp], eax
mov eax, dword [ebp - 0x314]
call eax
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, ebx
sub esp, 0xc
call dbg.number_from_string
fld dword [ebp - 0x304]
cmp eax, 1
mov eax, dword [ebp - 0x300]
sbb dword [ebp - 0x318], 0xffffffff
cmp eax, 1
je 0x4096e0
cmp eax, 2
je 0x4096d0
xor edx, edx
test eax, eax
je 0x409680
fstp st(0)
mov dword [ebp - 0x2c4], edx
mov dword [esp + 8], 0xff
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x324]
mov dword [esp], eax
mov eax, dword [ebp - 0x314]
call eax
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, ebx
sub esp, 0xc
call dbg.number_from_string
test eax, eax
je 0x409468
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x300]
fld dword [ebp - 0x304]
add edx, 1
cmp eax, 1
je 0x409640
cmp eax, 2
je 0x409588
test eax, eax
je 0x4095f0
fstp st(0)
mov dword [ebp - 0x2c8], 0
cmp edx, 3
jne 0x4094a0
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
test edx, edx
js 0x4097c0
mov eax, dword [ebp - 0x2c8]
add edx, eax
neg eax
mov dword [ebp - 0x2c8], edx
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
test edx, edx
je 0x409431
mov dword [ebp - 0x2d0], 0x400f
xor edx, edx
test eax, eax
cmovs eax, edx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x2d4]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x447
mov eax, dword [0x41f704]
mov dword [esp], eax
mov eax, dword [ebp - 0x310]
call eax
sub esp, 0x10
jmp 0x408e62
mov eax, dword [ebp - 0x300]
fld dword [ebp - 0x304]
cmp eax, 1
je 0x409608
cmp eax, 2
je 0x409530
test eax, eax
je 0x409570
fstp st(0)
mov dword [ebp - 0x2c8], 0
lea esi, [esi]
mov dword [ebp - 0x2fc], 0x28
mov eax, dword [0x41f708]
mov dword [ebp - 0x2f8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2f0], 0x6a9
mov dword [ebp - 0x2f4], eax
sub esp, 4
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x2ec], global_lpCaption
mov dword [ebp - 0x2e8], 0x40
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x408e3d
fld qword [0x411d48]
fmulp st(1)
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x2c8]
fldcw word [ebp - 0x30a]
jmp 0x4094a0
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x409538
fld qword [0x411d48]
fmulp st(1)
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x314]
fldcw word [ebp - 0x30a]
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x2c8], eax
cmp edx, 3
jne 0x4094a0
mov edx, dword [ebp - 0x2c0]
lea ecx, [edx + eax]
test ecx, eax
jns 0x4093dd
neg eax
xor edx, edx
jmp 0x4093ef
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x409590
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x2c8]
fldcw word [ebp - 0x30a]
jmp 0x4094a0
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x314]
fldcw word [ebp - 0x30a]
mov eax, dword [ebp - 0x314]
jmp 0x4095bf
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x320]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x320]
jmp 0x409350
fld qword [0x411d48]
fmulp st(1)
jmp 0x409692
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x320]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x320]
jmp 0x409350
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x328]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x328]
jmp 0x4092e3
fld qword [0x411d48]
fmulp st(1)
jmp 0x409732
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x328]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x328]
jmp 0x4092e3
xor edx, edx
test ecx, ecx
cmovns edx, ecx
mov eax, edx
neg eax
jmp 0x4093ef