Function at 0x4d7db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4d7dce
mov dword [ebx], str.device_not_found
push 0x64cf6c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x621590]
jmp 0x4d8075
cmp dword [esi + 0x44], 5
jne 0x4d7dfd
test ebx, ebx
je 0x4d8070
mov dword [ebx], str.insufficient_permissions_for_device
jmp 0x4d8070
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.mobileadapt.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
push 0x400
lea eax, [ebp - 0xa0c]
push eax
push 0
push str.0x43_daemon
push str.devices_ext
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4d7e6d
lea eax, [ebp - 0xa0c]
push eax
call fcn.004f7d3f
test eax, eax
pop ecx
setne bl
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4d7f25
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4d7eaa
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d7e9d
test dl, dl
je 0x4d7e99
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d7e9d
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x4d7e7f
xor eax, eax
jmp 0x4d7ea2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4d7f35
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x4d7edb
mov eax, dword [ebp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4d7ed2
test dl, dl
je 0x4d7ece
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4d7ed2
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x4d7eb4
xor eax, eax
jmp 0x4d7ed7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4d7f35
mov eax, dword [esi + 0x5c]
mov edx, dword [ebp + 0x10]
push 0
mov ecx, str.product:
call fcn.004d7d49
pop ecx
test eax, eax
jne 0x4d7f35
mov eax, dword [esi + 0x60]
mov edx, dword [ebp + 0x10]
push 1
mov ecx, str.model:
call fcn.004d7d49
pop ecx
test eax, eax
jne 0x4d7f35
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x64]
mov ecx, str.device:
call fcn.004d7d49
pop ecx
test eax, eax
je 0x4d8070
jmp 0x4d7f35
cmp dword [ebp + 0xc], 0
jne 0x4d7f60
cmp dword [esi + 0x4c], 0
jne 0x4d8070
test edi, edi
je 0x4d806e
cmp dword [edi + 0x44], 2
je 0x4d8052
cmp dword [esi + 0x44], 2
je 0x4d806e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4d7fce
mov dword [eax], str.more_than_one_device
jmp 0x4d7fce
cmp dword [ebp + 0xc], 1
jne 0x4d7f9b
cmp dword [esi + 0x4c], 1
jne 0x4d8070
test edi, edi
je 0x4d806e
cmp dword [edi + 0x44], 2
je 0x4d8052
cmp dword [esi + 0x44], 2
je 0x4d806e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4d7fce
mov dword [eax], str.more_than_one_emulator
jmp 0x4d7fce
cmp dword [ebp + 0xc], 2
jne 0x4d8070
test edi, edi
je 0x4d806e
cmp dword [edi + 0x44], 2
je 0x4d8052
cmp dword [esi + 0x44], 2
je 0x4d806e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4d7fce
mov dword [eax], str.more_than_one_device_and_emulator
mov ebx, eax
xor edi, edi
mov dword [ebp - 4], 1
push 0x64cf6c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
cmp edi, ecx
je 0x4d8032
cmp dword [edi + 0x44], 7
jne 0x4d7ffc
cmp ebx, ecx
je 0x4d7ffa
mov dword [ebx], str.device_unauthorized._Please_check_the_confirmation_dialog_on_your_device.
xor edi, edi
cmp edi, ecx
je 0x4d8032
cmp dword [edi + 0x44], ecx
jne 0x4d8011
cmp ebx, ecx
je 0x4d800f
mov dword [ebx], str.device_offline
xor edi, edi
cmp edi, ecx
je 0x4d8032
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4d802e
cmp dword [edi + 0x44], eax
je 0x4d802e
cmp ebx, ecx
je 0x4d802c
mov dword [ebx], str.invalid_device_state
xor edi, edi
cmp edi, ecx
jne 0x4d8086
cmp dword [ebp + 8], 0xffffffff
je 0x4d808c
cmp dword [ebp + 0x10], ecx
jne 0x4d8042
cmp dword [ebp - 4], ecx
jne 0x4d808c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d7dc4
test bl, bl
je 0x4d8070
cmp byte [edi + 0xbc], 0x43
je 0x4d8070
cmp byte [esi + 0xbc], 0x43
jne 0x4d8070
cmp dword [esi + 0x44], 2
jne 0x4d8070
mov edi, esi
mov esi, dword [esi]
mov ebx, dword [ebp + 0x14]
cmp esi, 0x621590
jne 0x4d7de4
jmp 0x4d7fd9
cmp ebx, ecx
je 0x4d808c
mov dword [ebx], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret