Function at 0x10002580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10131f30
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1018f120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.10003371
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x100025c9
push 0x80004005
call fcn.10002260
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea esi, [edi + 0x44]
mov dword [ebp - 4], 0
mov eax, dword [esi]
xor ebx, ebx
mov ecx, 0x1017294c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000260d
test dx, dx
je 0x10002609
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000260d
add eax, 4
add ecx, 4
test dx, dx
jne 0x100025e7
xor eax, eax
jmp 0x10002612
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x1000262c
push 0x1c
push str.._PARAM_port_loss_config.txt
lea ecx, [ebp - 0x78]
call fcn.10002090
jmp 0x1000266c
push str.port_loss_config.txt
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.10002bf0
add esp, 0xc
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10002150
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000266c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push esi
push 0x32
push eax
push 0
push str.factoryMode
push str.Factory_Mode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x58], al
lea eax, [ebp - 0x74]
push esi
push 0x32
push eax
push 0
push str.CALIBRATION
push str.MRT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
je 0x100027c8
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.EDGE
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
mov ecx, 1
test eax, eax
setne al
push esi
push 0x32
test al, al
mov byte [edi + 0x5b], al
lea eax, [ebp - 0x74]
push eax
push 0
push str.HSPA
push str.RAT_SETTING
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x5e], al
test al, al
je 0x10002732
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push 0x101728fc
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x5f], al
test al, al
je 0x10002764
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.TDSCDMA
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x5c], al
test al, al
je 0x10002796
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.CDMA
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x5d], al
test al, al
je 0x100027c8
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.TEST
push str.MRT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
test al, al
je 0x100028f4
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.EDGE
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x60], al
test al, al
je 0x1000282c
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.HSPA
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x63], al
test al, al
je 0x1000285e
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push 0x101728fc
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x64], al
test al, al
je 0x10002890
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.TDSCDMA
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x61], al
test al, al
je 0x100028c2
inc ebx
push esi
push 0x32
lea eax, [ebp - 0x74]
push eax
push 0
push str.CDMA
push str.RAT_SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x74]
push eax
call fcn.10119c5c
add esp, 4
test eax, eax
setne al
mov byte [edi + 0x62], al
test al, al
je 0x100028f4
inc ebx
cmp byte [edi + 0x5b], 0
jne 0x10002912
cmp byte [edi + 0x5e], 0
jne 0x10002912
cmp byte [edi + 0x5f], 0
jne 0x10002912
cmp byte [edi + 0x5c], 0
jne 0x10002912
cmp byte [edi + 0x5d], 0
je 0x10002916
mov byte [edi + 0x59], 1
cmp byte [edi + 0x60], 0
jne 0x10002934
cmp byte [edi + 0x63], 0
jne 0x10002934
cmp byte [edi + 0x64], 0
jne 0x10002934
cmp byte [edi + 0x61], 0
jne 0x10002934
cmp byte [edi + 0x62], 0
je 0x10002938
mov byte [edi + 0x5a], 1
mov eax, dword [edi + 0x54]
test eax, eax
je 0x10002947
push ebx
push 1
call eax
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10002968
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10119678
mov esp, ebp
pop ebp
ret