Function at 0x10003e10
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b171
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x1002b064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.100041a0
lea esi, [edi + 0x18]
lea eax, [edi + 0x48]
cmp eax, esi
je 0x10003e66
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10003e58
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.100015e0
lea eax, [edi + 0x48]
push 0xe
push 0x1001c3a4
mov ecx, eax
call fcn.10001460
push esi
lea ecx, [ebp - 0x438]
call fcn.10001ab0
push 0xb
push str.MConfig.ini
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.10001460
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10008cc0
add esp, 0xc
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003f2f
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1001c2f0
push str.CfgPath
push str.MainAppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x78]
call fcn.100015e0
cmp dword [edi + 0x88], 0
lea esi, [edi + 0x78]
jne 0x100040ec
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10008cc0
add esp, 0xc
lea eax, [ebp - 0x480]
mov ecx, edi
push eax
call fcn.10003690
cmp dword [ebp - 0x46c], 8
lea ecx, [ebp - 0x420]
push ecx
push str.c8984
push str.OIWiFiSet
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x480]
mov ecx, edi
push eax
push 0x1001c2f8
lea eax, [ebp - 0x450]
push eax
call fcn.10003b10
mov dword [ebp - 0x484], eax
cmp esi, eax
je 0x10003fda
mov ecx, esi
call fcn.10001380
mov eax, dword [ebp - 0x484]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x450]
call fcn.10001380
cmp dword [esi + 0x10], 0
je 0x100040df
push esi
lea ecx, [ebp - 0x450]
call fcn.10001ab0
cmp dword [ebp - 0x43c], 8
lea edx, [ebp - 0x450]
mov eax, dword [ebp - 0x440]
cmovae edx, dword [ebp - 0x450]
mov byte [ebp - 4], 2
test eax, eax
je 0x100040d4
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x10004045
cmp ecx, edx
je 0x100040d4
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x10004034
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
jle 0x100040d4
xor eax, eax
mov dword [ebp - 0x458], 0
inc ecx
mov word [ebp - 0x468], ax
cmp dword [esi + 0x10], ecx
mov eax, esi
mov dword [ebp - 0x454], 7
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x10004081
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.100015e0
lea eax, [ebp - 0x468]
mov ecx, esi
push eax
call fcn.10003230
lea ecx, [ebp - 0x468]
call fcn.10001380
add edi, 0x90
cmp edi, esi
je 0x100040c6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100040bb
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.100015e0
push 0xa
push str.BtfiOi.ini
mov ecx, edi
call fcn.10001460
lea ecx, [ebp - 0x450]
call fcn.10001380
lea ecx, [ebp - 0x480]
call fcn.10001380
jmp 0x10004135
push 6
push str.Config
mov ecx, esi
call fcn.10001460
push 1
push 0x1001c2f4
mov ecx, esi
call fcn.10001460
add edi, 0x90
cmp edi, esi
je 0x10004127
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1000411c
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.100015e0
push 0xa
push str.Config.use
mov ecx, edi
call fcn.10001460
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x10004171
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004167
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000418c
push edx
push ecx
call fcn.1000679d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100067b0
mov esp, ebp
pop ebp
ret
call fcn.1000a8e9
int3