Function at 0x4067b0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x44c00a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466ccc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041f8c5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4067f3
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], 0
call fcn.0041f8c5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406825
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x38], 1
call fcn.0041f7e4
mov edx, dword [esi + 0x1a0]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push 1
push edx
call fcn.00410b00
mov eax, dword [str.ShowController]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 1
push eax
push ecx
mov ecx, edi
call fcn.00413d20
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
mov dword [esi + 0x8c], eax
mov eax, dword [str.Position]
push 0x4512e0
push eax
push ecx
mov ecx, edi
call fcn.00413c90
mov edx, dword [str.RotatorName]
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esp + 0x18]
push 0x4508b7
push edx
push eax
mov ecx, edi
call fcn.00413c90
mov ecx, dword [str.ComPort]
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
mov ecx, edi
call fcn.00413d20
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1a4], eax
mov eax, dword [str.AffectedGroup]
push 0
push eax
push ecx
mov ecx, edi
call fcn.00413d20
test eax, eax
jne 0x4068f3
push eax
lea ecx, [esi + 0xa0]
push 0x4508b7
call fcn.00401920
jmp 0x406903
lea edx, [esi + 0xa0]
push edx
push eax
call fcn.004109b0
add esp, 8
mov eax, dword [str.RotationLimitsStart]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, edi
call fcn.00413d20
mov edx, dword [str.RotationLimitsStop]
push 0xffffffffffffffff
mov dword [esi + 0x94], eax
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, edi
call fcn.00413d20
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x90], eax
call fcn.00410880
mov ecx, dword [str.GlobalOffset]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.00413d20
mov dword [esi + 0x98], eax
call fcn.0041f8c5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406971
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x38], 2
call fcn.0041f8c5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4069a0
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x38], 3
xor eax, eax
lea ebx, [esi + 0xa8]
lea ecx, [ecx]
mov ecx, dword [str.Antenna_d]
lea ebp, [eax + 1]
push ebp
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00401be0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x4508b7
push ecx
push edx
mov ecx, edi
call fcn.00413c90
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.00410d80
mov eax, ebp
add esp, 8
add ebx, 0x18
cmp eax, 0xa
jl 0x4069c0
xor ebp, ebp
cmp dword [esi + 0x8c], ebp
mov dword [esi + 0x60], ebp
je 0x406b0c
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x3b
call ebx
mov edi, eax
push 0x3c
sub edi, 0xc
call ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov ebx, eax
mov eax, dword [esp + 0x30]
push str._d__d
push eax
sub ebx, 0xc
call fcn.00434fad
add esp, 0x10
cmp eax, 2
je 0x406a63
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x406a6f
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jl 0x406a81
mov ecx, dword [esp + 0x18]
add eax, 0x1e
cmp eax, edi
jg 0x406a81
cmp ecx, ebp
jl 0x406a81
add ecx, 0x14
cmp ecx, ebx
jle 0x406a89
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
push 0x440
call fcn.0041714c
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov byte [esp + 0x38], 4
je 0x406abb
mov edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x1a0]
push esi
push edx
push ecx
mov ecx, eax
call fcn.0040d870
jmp 0x406abd
xor eax, eax
mov dword [esi + 0x60], eax
mov edx, dword [eax]
push esi
mov ecx, eax
mov eax, dword [edx + 0x134]
push 0x87
mov byte [esp + 0x40], 3
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x19c]
push 0x55
push ebp
push ebp
push ecx
mov ecx, dword [esi + 0x60]
push edx
push eax
call fcn.0041d762
mov ecx, dword [esi + 0x98]
push ecx
call fcn.00410900
mov ecx, dword [esi + 0x60]
add esp, 4
push eax
call fcn.0040ce70
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret