Function at 0x408b30
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 ebx, dword [ecx + 8]
cmp eax, 0x110
je 0x408b88
cmp eax, 0x111
jne 0x408b73
movzx eax, bx
cmp bx, 1
je 0x408e60
cmp eax, 2
je 0x40913a
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
lea esi, [ebp - 0x216]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [ebp - 0x310], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7db
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d8
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x314], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d9
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7da
call sym._GetDlgItem_8
mov edi, eax
mov eax, dword [ebp - 0x310]
sub esp, 8
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x588
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x310]
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x589
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x310]
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x58a
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call sym._SendMessageW_16
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41d704]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
call sym._SendMessageW_16
movzx edx, word [ebp - 0x2bc]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x408d27
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x14e
mov dword [esp], ebx
call sym._SendMessageW_16
mov eax, dword [ebp - 0x2c0]
add eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x310], eax
fild dword [ebp - 0x310]
sub esp, 0x10
fdiv dword [0x411d38]
mov dword [esp + 0x14], 0x41c6a0
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], esi
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x314]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SetWindowTextW_8
fild dword [ebp - 0x2c4]
fdiv dword [0x411d38]
sub esp, 8
mov dword [esp + 0x14], 0x41c6a0
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], esi
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x318]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SetWindowTextW_8
mov eax, dword [ebp - 0x2c0]
sub esp, 8
neg eax
mov dword [esp + 0x14], 0x41c6a0
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], esi
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._SetWindowTextW_8
sub esp, 8
jmp 0x408b73
mov dword [esp + 4], 0x7db
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x7d8
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x310], eax
mov dword [esp + 4], 0x7d9
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp + 4], 0x7da
mov dword [esp], edi
call sym._GetDlgItem_8
mov dword [ebp - 0x2d4], 0xbc
sub esp, 8
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x2d4]
mov dword [esp + 0xc], eax
mov eax, dword [0x41d704]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
mov dword [ebp - 0x2d0], 0x20
call sym._SendMessageW_16
mov dword [ebp - 0x314], 0
sub esp, 0x10
test byte [ebp - 0x2d0], 0x20
je 0x408f24
xor eax, eax
cmp word [ebp - 0x2cc], 0
setne al
mov dword [ebp - 0x314], eax
mov dword [esp], esi
lea esi, [ebp - 0x216]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
call sym._SendMessageW_16
movzx eax, word [eax + eax + 0x411b30]
sub esp, 0x10
mov dword [esp + 8], 0xff
mov word [ebp - 0x2bc], ax
mov eax, dword [ebp - 0x310]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._GetWindowTextW_12
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, esi
sub esp, 0xc
call dbg.number_from_string
fld dword [ebp - 0x304]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x300]
cmp eax, 1
je 0x409320
cmp eax, 2
je 0x4092e0
xor edx, edx
test eax, eax
je 0x409400
fstp st(0)
mov eax, dword [ebp - 0x318]
mov dword [esp + 8], 0xff
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x2c0], edx
call sym._GetWindowTextW_12
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, esi
sub esp, 0xc
call dbg.number_from_string
fld dword [ebp - 0x304]
cmp eax, 1
mov eax, dword [ebp - 0x300]
sbb dword [ebp - 0x310], 0xffffffff
cmp eax, 1
je 0x4093c0
cmp eax, 2
je 0x4093b0
xor edx, edx
test eax, eax
je 0x409360
fstp st(0)
mov eax, dword [ebp - 0x31c]
mov dword [esp + 8], 0xff
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x2c4], edx
call sym._GetWindowTextW_12
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, esi
sub esp, 0xc
call dbg.number_from_string
test eax, eax
je 0x409160
mov eax, dword [ebp - 0x300]
add dword [ebp - 0x310], 1
fld dword [ebp - 0x304]
mov edx, dword [ebp - 0x310]
cmp eax, 1
je 0x4092a0
cmp eax, 2
je 0x409220
test eax, eax
je 0x409288
fstp st(0)
mov dword [ebp - 0x2c8], 0
cmp edx, 3
jne 0x409192
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
test edx, edx
js 0x409420
mov eax, dword [ebp - 0x2c8]
add edx, eax
neg eax
mov dword [ebp - 0x2c8], edx
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
test edx, edx
je 0x409110
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 eax, dword [0x41d704]
mov dword [esp + 4], 0x447
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._EndDialog_8
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 eax, dword [ebp - 0x300]
fld dword [ebp - 0x304]
cmp eax, 1
je 0x4092a0
cmp eax, 2
je 0x409220
test eax, eax
je 0x409288
fstp st(0)
mov dword [ebp - 0x2c8], 0
mov eax, dword [0x41d708]
mov dword [esp], 0
mov dword [ebp - 0x2fc], 0x28
mov dword [ebp - 0x2f8], eax
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 [esp], eax
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
call sym._MessageBoxIndirectW_4
sub esp, 4
jmp 0x408b73
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 - 0x318]
fldcw word [ebp - 0x30a]
mov eax, dword [ebp - 0x318]
cmp dword [ebp - 0x310], 3
mov dword [ebp - 0x2c8], eax
jne 0x409192
mov edx, dword [ebp - 0x2c0]
lea ecx, [edx + eax]
test ecx, eax
jns 0x4090bc
neg eax
xor edx, edx
jmp 0x4090ce
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x409228
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 - 0x318]
fldcw word [ebp - 0x30a]
mov eax, dword [ebp - 0x318]
jmp 0x409257
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 - 0x320]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x320]
jmp 0x408fc4
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 0x408fc4
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 - 0x318]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x318]
jmp 0x40902e
fld qword [0x411d48]
fmulp st(1)
jmp 0x409372
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 - 0x318]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x318]
jmp 0x40902e
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x4092e8
xor edx, edx
test ecx, ecx
cmovns edx, ecx
mov eax, edx
neg eax
jmp 0x4090ce