Function at 0x41db50
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49473c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3dc
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xb0]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xbd9f]
push ecx
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._s_recipemainrecmainrec.ini
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x60]
push ecx
push str.RecType_3.3d
lea edx, [ebp - 0x390]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x350]
push eax
push 0
push str.MaxRec
lea ecx, [ebp - 0x390]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x394], eax
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x62]
cmp eax, dword [ebp - 0x394]
jle 0x41dc6f
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x62]
push edx
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x60]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041a260
mov edx, dword [ebp - 0x10]
add edx, 0x4df9
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x64
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x394]
add ecx, 1
push ecx
push 0x49857c
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x250]
push ecx
push str.MaxRec
lea edx, [ebp - 0x390]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x41ddb7
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x60]
mov word [ebp - 0x91], cx
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0x62]
mov word [ebp - 0x8f], ax
push 2
call sub.RECHEAD.dll_Ordinal_60_1
lea ecx, [ebp - 0xac]
push ecx
call sub.RECHEAD.dll_Ordinal_30_2
test eax, eax
jne 0x41dcd7
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0x62]
push eax
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x60]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0041a260
push 0x9b
mov eax, dword [ebp - 0x10]
add eax, 0x4f54
push eax
lea ecx, [ebp - 0xac]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4f67]
mov dword [ebp - 0x99], eax
mov ecx, dword [edx + 0x4f6b]
mov dword [ebp - 0x95], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xbeb3], 0
je 0x41ddb7
mov eax, dword [ebp - 0x10]
fld qword [eax + 0xbecb]
fsub qword [ebp - 0x99]
sub esp, 8
fstp qword [esp]
call sub.MSVCRT.dll_fabs
add esp, 8
fcomp qword [0x49ac38]
fnstsw ax
test ah, 0x41
jne 0x41ddb7
push 0x4f
lea ecx, [ebp - 0x100]
push ecx
push 0x9e
call fcn.004124a0
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x4e
lea edx, [ebp - 0x150]
push edx
push 0x9f
call fcn.004124a0
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x100]
push ecx
push 0x49ac40
lea edx, [ebp - 0xb0]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 0
push 0x34
lea ecx, [ebp - 0xb0]
call fcn.00406000
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 7
jne 0x41ddb7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call sub.MFC42.DLL_CString::CString
jmp 0x41e190
mov dword [ebp - 0x398], 0
jmp 0x41ddd2
mov eax, dword [ebp - 0x398]
add eax, 1
mov dword [ebp - 0x398], eax
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0x75]
cmp dword [ebp - 0x398], edx
jge 0x41df81
push 0xff
lea eax, [ebp - 0x250]
push eax
push 1
mov ecx, dword [ebp - 0x398]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x58]
add ecx, 0x44
call fcn.0047a910
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x7f
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax + 0x50a8], 0x54
jne 0x41de40
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0x398]
imul ecx, ecx, 0x2d
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 0x77], eax
jmp 0x41de71
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x7f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x50ac]
push edx
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x2d
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x77]
push edx
lea eax, [ebp - 0x250]
push eax
call sub.WINDCS32.dll_Ordinal_83
push 0x100
lea ecx, [ebp - 0x250]
push ecx
push 2
mov edx, dword [ebp - 0x398]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x58]
add ecx, 0x44
call fcn.0047a910
mov byte [ebp - 0x39c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xbe73
push ecx
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x41dedc
push 0x49ab14
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x2d
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x7b]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x41df7c
mov eax, dword [ebp - 0x10]
add eax, 0xbe87
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x41df19
push 0x498fb4
mov edx, dword [ebp - 0x398]
imul edx, edx, 0x2d
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 0x7b]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x41df7c
mov edx, dword [ebp - 0x39c]
and edx, 0xff
test edx, edx
jne 0x41df5e
mov byte [ebp - 0x39c], 1
push 0xffffffffffffffff
push 0x40
push 0x429
call sub.MFC42.DLL_AfxMessageBox_1
push 0x498fb4
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x2d
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x7b]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x41df7c
push 0x498fb4
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x2d
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x7b]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x41ddc3
mov byte [ebp - 0x3a0], 1
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0x75]
test ecx, ecx
jle 0x41dfc3
mov edx, dword [ebp - 0x10]
add edx, 0x60
push edx
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0xbd9f]
push ecx
call sub.RECFILE.dll_Ordinal_60
test eax, eax
jne 0x41dfc3
push 0xffffffffffffffff
push 0x30
push 0xa0
call sub.MFC42.DLL_AfxMessageBox_1
mov byte [ebp - 0x3a0], 0
mov ecx, dword [ebp - 0x10]
call fcn.0041d670
push 0x26c3
mov edx, dword [ebp - 0x10]
add edx, 0x60
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x2723
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x3a0]
and ecx, 0xff
test ecx, ecx
je 0x41e171
push 0x50
lea edx, [ebp - 0x100]
push edx
call fcn.004019d0
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x100]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
movsx edx, byte [ebp + eax - 0x101]
cmp edx, 0x2a
jne 0x41e047
lea eax, [ebp - 0x100]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x102], 0
push 0x11
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 0x62]
push edx
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x60]
push ecx
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0xbd9f]
push eax
call sub.RECFILE.dll_recfile_GetStmRecName
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x3a4]
push edx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 4
mov dword [ebp - 0x3a8], eax
mov ecx, dword [ebp - 0x3a8]
mov eax, dword [ecx + 0x14]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
mov ecx, dword [ebp - 0x3a8]
mov edx, dword [ecx + 0xc]
push edx
push str._2.2d._2.2d._2.2d
mov eax, dword [ebp - 0x10]
add eax, 0x4fb1
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov ecx, dword [ebp - 0x3a8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x3a8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x3a8]
mov eax, dword [edx + 8]
push eax
push str._2.2d:_2.2d:_2.2d
mov ecx, dword [ebp - 0x10]
add ecx, 0x4fc0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 0x498130
mov edx, dword [ebp - 0x10]
add edx, 0x4fcf
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x20
mov eax, dword [ebp - 0x10]
add eax, 0x4fcf
push eax
call sub.WINDCS32.dll_Ordinal_48_2
push 2
call sub.RECHEAD.dll_Ordinal_60_1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4f54
push ecx
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0xbd9f]
push eax
call fcn.004019d0
mov ecx, dword [eax + 0x20]
push ecx
call sub.RECHEAD.dll_Ordinal_31_2
push 2
call fcn.004019d0
mov ecx, eax
call fcn.00437bf0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xbea7], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret