Function at 0x401081
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594852
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call sub.MFC42.DLL_CCmdTarget::CCmdTarget
mov dword [ebp - 4], 0
push 0xa
mov ecx, dword [ebp - 0x24]
add ecx, 0x88
call sub.MFC42.DLL_CPtrList::CPtrList
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0x128
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
add ecx, 0x12c
call sub.MFC42.DLL_CDC::CDC
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
add ecx, 0x13c
call fcn.00403a70
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
add ecx, 0x148
call sub.MFC42.DLL_CDC::CDC
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
add ecx, 0x158
call fcn.00403a70
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
add ecx, 0x164
call fcn.00403650
mov ecx, dword [ebp - 0x24]
add ecx, 0x174
call fcn.00403650
mov ecx, dword [ebp - 0x24]
add ecx, 0x184
call fcn.00403650
mov ecx, dword [ebp - 0x24]
add ecx, 0x194
call fcn.00403650
mov ecx, dword [ebp - 0x24]
add ecx, 0x1a4
call fcn.00403650
mov ecx, dword [ebp - 0x24]
add ecx, 0x1b4
call fcn.00403970
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x24]
add ecx, 0x1bc
call fcn.004038e0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c4
call fcn.004038e0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
add ecx, 0x1cc
call fcn.004038e0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x24]
add ecx, 0x1d4
call fcn.00403710
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x5ae520
mov word [ebp - 0x10], 0
jmp 0x4011d9
mov cx, word [ebp - 0x10]
add cx, 1
mov word [ebp - 0x10], cx
movsx edx, word [ebp - 0x10]
cmp edx, 0xa
jge 0x40120f
movsx eax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax*4 + 0x38]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x88
call sub.MFC42.DLL_CPtrList::AddTail
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, word [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx*4 + 0x38], eax
jmp 0x4011cd
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0x40468000
push 0x3ff00000
push 0
call sub.MSVCRT.dll_atan
add esp, 8
fmul qword [0x5ae518]
mov ecx, dword [ebp - 0x24]
fstp qword [ecx + 0xe8]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.00403660
mov edx, dword [ebp - 0x24]
add edx, 0x164
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0xb4], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xb8], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xa8], 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x100], 0
mov dword [ecx + 0x104], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xa4], 1
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x110], 0
mov dword [eax + 0x114], 0xc0240000
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x118], 0
mov dword [ecx + 0x11c], 0x40240000
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x108], 0
mov dword [edx + 0x10c], 0
push str.Volts
mov eax, dword [ebp - 0x24]
add eax, 0x128
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0xac], 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xb0], 3
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x20], 0x808080
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x28], 0xff00
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x24], 0xff
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x2c], 0xc0c0c0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0xffffff
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0xffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x24]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00401535
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret