Function at 0x4035c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c40
call fcn.0043d750
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov edi, ecx
mov dword [ebp - 0x2c40], eax
xor bl, bl
cmp edi, 1
jne 0x4035fb
push eax
push 0x4662c0
push str._s___SM2_Bluetooth__05X
jmp 0x40360b
cmp edi, 2
jne 0x403621
push eax
push 0x4662c0
push str._s___Wi_Fi__05X
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004019b0
add esp, 0x14
jmp 0x40364a
lea eax, [ebp - 0x214]
push 0x4662c0
test edi, edi
jne 0x403637
push str._s___SM2_USB
jmp 0x40363c
push str._s__
push 0x104
push eax
call fcn.004019b0
add esp, 0x10
push str.SM2RP32.INI
push 0x1000
lea eax, [ebp - 0x2c2c]
xorps xmm0, xmm0
push eax
push 0
push 0x466938
movups xmmword [esi], xmm0
push str.VendorInformation
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
lea eax, [ebp - 0x2c2c]
push 0x46696c
push eax
call fcn.0042cd84
add esp, 0xc
mov dword [ebp - 0x2c30], 0
test eax, eax
je 0x403854
lea ecx, [ebp - 0x2c30]
push ecx
push 0x466970
push eax
call fcn.00401a00
add esp, 0xc
cmp eax, 1
jne 0x403854
test bl, bl
jne 0x403854
push dword [ebp - 0x2c30]
lea eax, [ebp - 0x61c]
push str.DeviceInformation_d
push 0x201
push eax
call fcn.004019b0
add esp, 0x10
lea eax, [ebp - 0x824]
push str.SM2RP32.INI
push 0x104
push eax
push 0
push str.DeviceName
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0042c9d7
add esp, 8
test eax, eax
jne 0x40383b
mov dword [ebp - 0x2c34], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c3c], xmm0
mov bl, 1
test edi, edi
je 0x403802
push str.SM2RP32.INI
push 0x201
lea eax, [ebp - 0xc2c]
push eax
push 0
push str.BluetoothAddress
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2c3c]
push eax
push str._llX
lea eax, [ebp - 0xc2c]
push 0x201
push eax
call fcn.00401070
add esp, 0x10
cmp eax, 1
je 0x403790
or dword [esi], 4
push str.SM2RP32.INI
push 0x201
lea eax, [ebp - 0xc2c]
push eax
push 0
push str.DeviceSerial
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2c34]
push eax
push 0x4669e8
lea eax, [ebp - 0xc2c]
push 0x201
push eax
call fcn.00401070
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp - 0x2c34]
jne 0x4037e8
cmp eax, dword [ebp - 0x2c40]
je 0x403802
mov ecx, dword [ebp - 0x2c38]
or dword [esi], 4
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c3c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x40381b
mov ecx, dword [ebp - 0x2c38]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c3c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
test edi, edi
je 0x40383b
push str.SM2RP32.INI
push 0xffffffffffffffff
push str.BluetoothConnection
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jns 0x40383b
or dword [esi], 4
push 0
push 0x46696c
push 0
call fcn.0042cd84
add esp, 0xc
test eax, eax
jne 0x4036a0
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422009
mov esp, ebp
pop ebp
ret