Function at 0x406710
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48aa7a
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4b37a0]
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 esi, ecx
mov dword [ebp - 0x254], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
xor eax, eax
mov dword [esi + 0x6c], 7
mov dword [esi + 0x68], 0
mov word [esi + 0x58], ax
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0045910f
xor ecx, ecx
push 0x4a54d8
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call fcn.004593a3
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 0
push str.pc_update_support
push str.MODE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov dword [ebp - 0x21c], 7
push 7
xor eax, eax
mov dword [ebp - 0x258], ebx
push str.SMTLINK
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040f680
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.0040cdd0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x21c], 8
jb 0x40689f
push dword [ebp - 0x230]
call fcn.00455fa6
add esp, 4
push 6
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.DEVICE
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040f680
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0xc]
call fcn.0040cdd0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x21c], 8
jb 0x4068fc
push dword [ebp - 0x230]
call fcn.00455fa6
add esp, 4
test ebx, ebx
je 0x4069be
push 0xa
xor eax, eax
mov dword [ebp - 0x21c], 7
push str.COMP_AUDIO
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040f680
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0xc]
call fcn.0040cdd0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x21c], 8
jb 0x406961
push dword [ebp - 0x230]
call fcn.00455fa6
add esp, 4
push 3
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0x4a5578
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040f680
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [esi + 0xc]
call fcn.0040cdd0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x21c], 8
jb 0x4069be
push dword [ebp - 0x230]
call fcn.00455fa6
add esp, 4
push esi
lea edx, [esi + 0xc]
lea ecx, [ebp - 0x250]
call fcn.0040d670
lea edi, [ebp - 0x260]
add esp, 4
xor ecx, ecx
xor edx, edx
cmp edi, eax
je 0x4069ec
mov edx, dword [eax + 4]
mov dword [eax + 4], ecx
mov ecx, dword [eax]
mov dword [eax], 0
mov ebx, dword [esi + 0x28]
or edi, 0xffffffff
mov dword [esi + 0x28], edx
mov dword [esi + 0x24], ecx
test ebx, ebx
je 0x406a1f
lea eax, [ebx + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x406a1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x406a1f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [ebp - 0x24c]
test ebx, ebx
je 0x406a4c
lea eax, [ebx + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x406a4c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x406a4c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
cmp dword [ebp - 0x258], 0
mov byte [ebp - 4], 0xc
je 0x406b50
push 0xa
xor eax, eax
mov dword [ebp - 0x234], 7
push str.COMP_AUDIO
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.0040f680
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x224]
call fcn.0040cdd0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x234], 8
jb 0x406af0
push dword [ebp - 0x248]
call fcn.00455fa6
add esp, 4
push 3
xor eax, eax
mov dword [ebp - 0x234], 7
push 0x4a5578
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.0040f680
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x224]
call fcn.0040cdd0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x234], 8
jb 0x406b50
push dword [ebp - 0x248]
call fcn.00455fa6
add esp, 4
push esi
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x250]
call fcn.0040d670
lea ebx, [ebp - 0x268]
add esp, 4
xor ecx, ecx
xor edx, edx
cmp ebx, eax
je 0x406b81
mov edx, dword [eax + 4]
mov dword [eax + 4], ecx
mov ecx, dword [eax]
mov dword [eax], 0
mov ebx, dword [esi + 0x30]
mov dword [esi + 0x30], edx
mov dword [esi + 0x2c], ecx
test ebx, ebx
je 0x406bb1
lea eax, [ebx + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x406bb1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x406bb1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [ebp - 0x24c]
test ebx, ebx
je 0x406bdd
lea eax, [ebx + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x406bdd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
lock xadd dword [eax], edi
dec edi
jne 0x406bdd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor cl, cl
lea eax, [esi + 0x70]
xchg byte [eax], cl
push 0x407810
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov byte [esi + 0x51], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x74], 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x406c36
push dword [ebp - 0x254]
mov edx, dword [ebp - 0x220]
push ecx
mov ecx, edi
call fcn.0040e5b0
push edi
call fcn.00455fa6
add esp, 0xc
mov eax, esi
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.0045755a
mov esp, ebp
pop ebp
ret