Function at 0x407e16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
push 0x3e8
lea eax, [ebp - 0x3ec]
push eax
push 0xc3d
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [ebp + 0xc]
push edx
push 0x40eeb8
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x407e91
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
push 0x40eebc
push 0xc3d
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
or eax, 0xffffffff
jmp 0x4080ae
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x7a120
jg 0x407ea4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jge 0x407ed2
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0x40eec0
push 0xc3d
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
or eax, 0xffffffff
jmp 0x4080ae
push 0x3e8
lea ecx, [ebp - 0x3ec]
push ecx
push 0xbe1
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x10]
push eax
push 0x40eec4
lea ecx, [ebp - 0x3ec]
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x407f43
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
push 0x40eec8
push 0xbe1
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
or eax, 0xffffffff
jmp 0x4080ae
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x3b
jg 0x407f53
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jge 0x407f82
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
push 0x40eecc
push 0xbe1
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
or eax, 0xffffffff
jmp 0x4080ae
push 0x3e8
lea edx, [ebp - 0x3ec]
push edx
push 0xbe3
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x14]
push ecx
push 0x40eed0
lea edx, [ebp - 0x3ec]
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x407ff3
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0x40eed4
push 0xbe3
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
or eax, 0xffffffff
jmp 0x4080ae
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0x3b
jg 0x408003
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jge 0x40802f
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
push 0x40eed8
push 0xbe3
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
or eax, 0xffffffff
jmp 0x4080ae
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
imul ecx, ecx, 0xe10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
imul eax, eax, 0x3c
add ecx, eax
mov edx, dword [ebp + 0x14]
add ecx, dword [edx]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x3c
div ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x3c
div ecx
xor edx, edx
mov ecx, 0x3c
div ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0xe10
div ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str._d:_d:_d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret