Function at 0x40fb90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x59d18c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x26c]
mov ebp, dword [esp + 0x268]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x56]
push edx
mov dword [esp + 0x34], eax
mov word [esp + 0x58], cx
call fcn.004fe380
add esp, 0xc
push str.mobileadapt.ini
call fcn.00403fa0
push eax
push 0x65fa18
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x65fa18
push 0x104
lea eax, [esp + 0x54]
push eax
push 0
push str.SrvVer
push str.main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40fe0a
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x50]
call fcn.004066b0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x264], 0
call fcn.0048dda0
push 0
push ecx
mov byte [esp + 0x268], 1
mov eax, esp
mov dword [esp + 0x38], esp
push eax
mov ecx, 0x5d8e04
call fcn.004066b0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x270], 2
call fcn.004066b0
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x270], 1
call fcn.004ea06e
add esp, 0x10
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x268], 3
call fcn.0040d050
lea esi, [esp + 0x34]
call fcn.00406cb0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x10
jne 0x40fdd6
mov eax, dword [eax]
push eax
call fcn.004f7d3f
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x20]
add esp, 4
sar edx, 2
mov dword [edi], eax
cmp edx, 1
ja 0x40fcf5
call fcn.004f825e
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
push eax
call fcn.004f7d3f
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
add esp, 4
sar ecx, 2
mov dword [ebx], eax
cmp ecx, 2
ja 0x40fd1c
call fcn.004f825e
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
push eax
call fcn.004f7d3f
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
add esp, 4
sar eax, 2
cmp eax, 3
ja 0x40fd44
call fcn.004f825e
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
push eax
call fcn.004f7d3f
mov edx, dword [esp + 0x2c]
mov dword [edx], eax
mov ecx, dword [edi]
add esp, 4
cmp ecx, 2
jg 0x40fd9b
jl 0x40fd82
mov ecx, dword [ebx]
test ecx, ecx
jg 0x40fd9b
jl 0x40fd71
cmp dword [ebp], 0
jg 0x40fd9b
test ecx, ecx
jl 0x40fd82
cmp dword [ebp], 0
jl 0x40fd82
cmp eax, 0x406
jge 0x40fd9b
mov dword [edi], 2
mov dword [ebx], 0
mov dword [ebp], 0
mov dword [edx], 0x406
lea esi, [esp + 0x10]
call fcn.00406cb0
mov dword [esp + 0x260], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40fe0c
lea esi, [esp + 0x10]
call fcn.00406cb0
mov dword [esp + 0x260], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004f673f
add esp, 0x258
ret 8