Function at 0x40f330
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [0x4527b8]
push ebx
push esi
push edi
mov dword [esp + 0x1bc], eax
xor eax, eax
mov word [esp + 0x70], 0
mov ecx, 0x31
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push 0x13b6
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4506e4]
sub eax, 0
je 0x40f417
dec eax
jne 0x40f485
mov ecx, dword [0x466bac]
dec ecx
mov dword [esp + 0x10], ecx
jmp 0x40f3a0
mov ecx, dword [esp + 0x10]
lea ebx, [ebx]
xor ebx, ebx
test ecx, ecx
jle 0x40f485
mov eax, 0x469580
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x7c]
cmp ecx, dword [eax + 0xfc]
ja 0x40f401
jb 0x40f3cb
mov edx, dword [eax + 0x78]
cmp edx, dword [eax + 0xf8]
jae 0x40f401
mov ecx, 0x20
mov esi, eax
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 0x80]
mov ecx, 0x20
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x20
lea esi, [esp + 0x138]
mov edi, edx
mov ebx, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
add eax, 0x80
dec ecx
mov dword [esp + 0xc], ecx
jne 0x40f3b3
test ebx, ebx
jne 0x40f396
jmp 0x40f485
mov ecx, dword [0x466bac]
dec ecx
mov dword [esp + 0x10], ecx
jmp 0x40f428
mov ecx, dword [esp + 0x10]
xor ebx, ebx
test ecx, ecx
jle 0x40f485
mov eax, 0x469600
mov dword [esp + 0xc], ecx
mov ecx, dword [eax - 0x80]
cmp ecx, dword [eax]
lea edx, [eax - 0x80]
jle 0x40f471
mov ecx, 0x20
mov esi, edx
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x20
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x20
lea esi, [esp + 0x138]
mov edi, eax
mov ebx, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
add eax, 0x80
dec ecx
mov dword [esp + 0xc], ecx
jne 0x40f437
test ebx, ebx
jne 0x40f424
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push 0
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x466bac]
test eax, eax
mov dword [esp + 0xc], 0
jle 0x40f637
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x4695e8
lea esp, [esp]
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0x1007
lea edx, [esi - 0x64]
push edi
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], edx
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esi]
fild dword [0x4506e0]
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
fild qword [esp + 0x14]
mov dword [esp + 0x2c], 0
fild qword [esp + 0x2c]
fchs
faddp st(1)
fild qword [0x469578]
fdivp st(1)
fdivp st(1)
call fcn.0041e5d0
push edx
push eax
call fcn.0040f010
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0x104c
lea eax, [esp + 0x7c]
push edi
mov dword [esp + 0x54], 1
mov dword [esp + 0x60], eax
call ebx
fild dword [0x4506e0]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x24], eax
fild qword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 0
fild qword [esp + 0x30]
lea edx, [esp + 0x70]
push edx
fchs
faddp st(1)
fild qword [0x469578]
fdivp st(1)
fdivp st(1)
call fcn.0041e5d0
push edx
push eax
call fcn.0040f010
add esp, 0xc
lea edx, [esp + 0x70]
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], 2
mov dword [esp + 0x50], edx
push eax
push 0
push 0x104c
push edi
call ebx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
call fcn.0040f010
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push 0
push 0x104c
lea ecx, [esp + 0x7c]
push edi
mov dword [esp + 0x54], 3
mov dword [esp + 0x60], ecx
call ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [0x466bac]
inc eax
add esi, 0x80
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x40f4c0
mov ecx, dword [esp + 0x1bc]
call fcn.0041d4a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret