Function at 0x40d080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53d1f3
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x58fa50]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x58fa50]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
push 0xa4
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
mov edi, ecx
call fcn.00516de0
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
call fcn.00403c80
add esp, 4
push 7
push str.Config_
lea ecx, [esp + 0x20]
mov dword [esp + 0xe8], ebx
call fcn.004036d0
mov eax, dword [edi + 0x1fc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004036d0
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], esp
mov ecx, esp
push edx
xor esi, esi
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push str.width
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Sensor
call fcn.00403bc0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
mov word [esp + 0x28], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 3
mov ecx, esp
mov dword [esp + 0x28], esp
push str.height
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov word [esp + 0x2e], ax
lea esi, [ebx + 2]
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push str.type
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
mov byte [esp + 0x2c], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 7
mov ecx, esp
mov dword [esp + 0x28], esp
push str.port
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov byte [esp + 0x97], al
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 9
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56982c
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0xa
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
mov byte [esp + 0x2d], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0xb
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x569830
call fcn.00403bc0
mov byte [esp + 0xe8], 0xc
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov byte [esp + 0x32], al
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0xd
mov ecx, esp
mov dword [esp + 0x28], esp
push str.mode
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
mov byte [esp + 0x2f], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0xf
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagReg
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov word [esp + 0x34], ax
mov esi, 0xff
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0x11
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagMask
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x12
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404060
mov word [esp + 0x3c], ax
add esp, 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0x13
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagData
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x14
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov word [esp + 0x36], ax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0x15
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagReg1
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x16
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
mov word [esp + 0x36], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0x17
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagMask1
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x18
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov word [esp + 0x3e], ax
call fcn.00404580
mov byte [esp + 0xe4], 0x19
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagData1
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x1a
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
mov word [esp + 0x38], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0x1b
mov ecx, esp
mov dword [esp + 0x28], esp
push str.outformat
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x1c
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404060
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov byte [esp + 0x8e], al
lea esi, [ebx + 1]
call fcn.00404580
push ecx
mov byte [esp + 0xe8], 0x1d
mov ecx, esp
mov dword [esp + 0x28], esp
push str.mclk
call fcn.00403bc0
push ecx
mov byte [esp + 0xec], 0x1e
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403bc0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404060
fld dword [0x56a128]
add esp, 4
mov dword [esp + 0x90], eax
fstp dword [esp + 4]
lea eax, [esp + 0x20]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xec], 0x1f
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.avdd
call fcn.00403bc0
mov byte [esp + 0xec], 0x20
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403bc0
mov byte [esp + 0xf0], bl
call fcn.00403da0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1e8]
lea edx, [esp + 0x20]
fld dword [0x56a128]
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push edx
call fcn.00404580
push ecx
mov byte [esp + 0xec], 0x21
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.dovdd
call fcn.00403bc0
push ecx
mov byte [esp + 0xf0], 0x22
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403bc0
mov byte [esp + 0xf0], bl
call fcn.00403da0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1ec]
lea eax, [esp + 0x20]
fld dword [0x56a128]
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xec], 0x23
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.dvdd
call fcn.00403bc0
push ecx
mov byte [esp + 0xf0], 0x24
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403bc0
mov byte [esp + 0xf0], bl
call fcn.00403da0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1f0]
lea edx, [esp + 0x20]
fld dword [0x56a128]
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push edx
call fcn.00404580
push ecx
mov byte [esp + 0xec], 0x25
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.AFVCC
call fcn.00403bc0
mov byte [esp + 0xec], 0x26
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403bc0
mov byte [esp + 0xf0], bl
call fcn.00403da0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1f4]
lea eax, [esp + 0x20]
fldz
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push eax
call fcn.00404580
push ecx
mov byte [esp + 0xec], 0x27
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x567f74
call fcn.00403bc0
push ecx
mov byte [esp + 0xf0], 0x28
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403bc0
mov byte [esp + 0xf0], bl
call fcn.00403da0
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
fstp dword [edi + 0x1f8]
lea eax, [esp + 0x24]
xor edx, edx
push eax
push ecx
mov word [esp + 0x8c], dx
mov word [esp + 0x84], cx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
call fcn.00404580
mov ecx, edi
call fcn.0040d910
call fcn.00413c50
cmp word [esp + 0x24], bx
je 0x40d8b3
cmp word [esp + 0x26], bx
je 0x40d8b3
add edi, 0xec
mov ecx, 0x29
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xe0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.005149e7
mov esp, ebp
pop ebp
ret