Function at 0x407fd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418210
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0
push 0
push 0x147
mov edi, ecx
push 0x435
call sub.MFC42.DLL_CWnd::SendDlgItemMessageA
test eax, eax
jne 0x408027
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
jmp 0x4080a7
cmp eax, 1
jne 0x408069
mov ecx, dword [esp + 0x20]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
mov esi, dword [esp + 0x28]
shr eax, 0x1f
add edx, eax
mov eax, 0x2aaaaaab
mov ecx, edx
mov edx, dword [esp + 0x24]
imul edx
mov eax, edx
mov dword [esi], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
mov dword [esi + 4], edx
mov dword [eax], ecx
lea edx, [edx + edx*4]
jmp 0x4080a7
cmp eax, 2
jne 0x4080aa
mov ecx, dword [esp + 0x20]
mov eax, 0x55555556
imul ecx
mov eax, edx
mov esi, dword [esp + 0x28]
shr eax, 0x1f
add edx, eax
mov eax, 0x55555556
mov ecx, edx
mov edx, dword [esp + 0x24]
imul edx
mov eax, edx
mov dword [esi], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x2c]
add ecx, ecx
mov dword [esi + 4], edx
mov dword [eax], ecx
add edx, edx
mov dword [eax + 4], edx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 8]
mov ecx, edi
push eax
push 0x438
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
lea ecx, [esp + 0xc]
call fcn.0040b0a0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 8]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x24], 1
call fcn.00416ec2
lea ecx, [esp + 0x14]
call fcn.0040b0e0
lea eax, [esp + 8]
mov ecx, edi
push eax
push 0x436
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, edi
fstp qword [edx]
push 0x437
call sub.MFC42.DLL_CWnd::IsDlgButtonChecked
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x18], 0
mov dword [ecx], eax
lea ecx, [esp + 0xc]
call fcn.0040b0d0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 0x1c

Function at 0x408500
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4182c8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push 0x422008
push 0x422008
push 0x422008
push 0x422008
push 0x422008
push 0x422008
push str.5000
push 0x422008
push 0x422008
push 0
mov dword [esp + 0x34], 0
call dword [esi + 0x3c]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [esi + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
call dword [esi + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [esi + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x10