Function at 0x40d070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53d2a3
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x590a50]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x590a50]
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.00516ee0
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
call fcn.00403e70
add esp, 4
push 7
push str.Config_
lea ecx, [esp + 0x20]
mov dword [esp + 0xe8], ebx
call fcn.004038c0
mov eax, dword [edi + 0x200]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004038c0
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], esp
mov ecx, esp
push edx
xor esi, esi
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push str.width
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Sensor
call fcn.00403db0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
mov word [esp + 0x28], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 3
mov ecx, esp
mov dword [esp + 0x28], esp
push str.height
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
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.00404770
push ecx
mov byte [esp + 0xe8], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push str.type
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
mov byte [esp + 0x2c], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 7
mov ecx, esp
mov dword [esp + 0x28], esp
push str.port
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 8
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov byte [esp + 0x97], al
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 9
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56a83c
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0xa
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
mov byte [esp + 0x2d], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0xb
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56a840
call fcn.00403db0
mov byte [esp + 0xe8], 0xc
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov byte [esp + 0x32], al
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0xd
mov ecx, esp
mov dword [esp + 0x28], esp
push str.mode
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
mov byte [esp + 0x2f], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0xf
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagReg
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
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.00404770
push ecx
mov byte [esp + 0xe8], 0x11
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagMask
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x12
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404250
mov word [esp + 0x3c], ax
add esp, 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0x13
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagData
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x14
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov word [esp + 0x36], ax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0x15
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagReg1
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x16
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
mov word [esp + 0x36], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0x17
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagMask1
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x18
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
mov word [esp + 0x3e], ax
call fcn.00404770
mov byte [esp + 0xe4], 0x19
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.FlagData1
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x1a
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
add esp, 8
mov word [esp + 0x38], ax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xe8], 0x1b
mov ecx, esp
mov dword [esp + 0x28], esp
push str.outformat
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x1c
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0xec], bl
call fcn.00404250
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.00404770
push ecx
mov byte [esp + 0xe8], 0x1d
mov ecx, esp
mov dword [esp + 0x28], esp
push str.mclk
call fcn.00403db0
push ecx
mov byte [esp + 0xec], 0x1e
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Sensor
call fcn.00403db0
mov ecx, esi
mov byte [esp + 0xec], bl
call fcn.00404250
fld dword [0x56b140]
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.00404770
push ecx
mov byte [esp + 0xec], 0x1f
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.avdd
call fcn.00403db0
mov byte [esp + 0xec], 0x20
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403db0
mov byte [esp + 0xf0], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1ec]
lea edx, [esp + 0x20]
fld dword [0x56b140]
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0xec], 0x21
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.dovdd
call fcn.00403db0
push ecx
mov byte [esp + 0xf0], 0x22
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403db0
mov byte [esp + 0xf0], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1f0]
lea eax, [esp + 0x20]
fld dword [0x56b140]
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xec], 0x23
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.dvdd
call fcn.00403db0
push ecx
mov byte [esp + 0xf0], 0x24
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403db0
mov byte [esp + 0xf0], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1f4]
lea edx, [esp + 0x20]
fld dword [0x56b140]
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0xec], 0x25
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.AFVCC
call fcn.00403db0
mov byte [esp + 0xec], 0x26
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403db0
mov byte [esp + 0xf0], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [edi + 0x1f8]
lea eax, [esp + 0x20]
fldz
mov dword [esp + 0x24], esp
fstp dword [esp + 4]
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0xec], 0x27
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x568f84
call fcn.00403db0
push ecx
mov byte [esp + 0xf0], 0x28
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Sensor
call fcn.00403db0
mov byte [esp + 0xf0], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 0x10
xor ecx, ecx
fstp dword [edi + 0x1fc]
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.00404770
mov ecx, edi
call fcn.0040d900
call fcn.00413c20
cmp word [esp + 0x24], bx
je 0x40d8a3
cmp word [esp + 0x26], bx
je 0x40d8a3
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 0x40d8ce
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.00514add
mov esp, ebp
pop ebp
ret