Function at 0x412660
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53cee8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x590a50]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00403e70
add esp, 4
push 0x11
xor ebx, ebx
push str.ProgramConfig.ini
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebx
call fcn.004038c0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x56910e
call fcn.00403db0
push ecx
mov byte [esp + 0x38], 1
lea edx, [esp + 0x14]
mov dword [esp + 0x20], esp
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0x3c], 2
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ConfigFileName
call fcn.00403db0
push ecx
mov byte [esp + 0x40], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Sensor
call fcn.00403db0
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x44], bl
call fcn.00404400
add esp, 0x14
lea ecx, [esi + 0x200]
push eax
mov byte [esp + 0x34], 4
call fcn.00403850
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0x38], 5
mov ecx, esp
mov dword [esp + 0x24], esp
push str.AEEnable
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 6
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
mov dword [esi + 0x338], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0x38], 7
mov ecx, esp
mov dword [esp + 0x24], esp
push str.AWBEnable
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 8
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
mov dword [esi + 0x344], eax
call fcn.00404770
push ecx
mov byte [esp + 0x38], 9
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ChangeGbGr
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0xa
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0x3c], bl
call fcn.00404250
fld1
add esp, 4
fstp dword [esp + 4]
mov dword [esi + 0x348], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0x3c], 0xb
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56aae0
call fcn.00403db0
push ecx
mov byte [esp + 0x40], 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56aabc
call fcn.00403db0
mov byte [esp + 0x40], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [esi + 0x330]
lea edx, [esp + 0x14]
fld1
mov dword [esp + 0x28], esp
fstp dword [esp + 4]
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0x3c], 0xd
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Gain
call fcn.00403db0
push ecx
mov byte [esp + 0x40], 0xe
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56aabc
call fcn.00403db0
mov byte [esp + 0x40], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x10]
fstp dword [esi + 0x334]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
mov edi, 0x630
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0xf
mov ecx, esp
mov dword [esp + 0x24], esp
push str.AEMax
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
mov dword [esi + 0x33c], eax
mov edi, 0x78
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x11
mov ecx, esp
mov dword [esp + 0x24], esp
push str.AETarget
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x12
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00404250
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
add esp, 4
lea eax, [esp + 0x14]
fstp dword [esi + 0x340]
mov dword [esp + 0x28], esp
fld1
mov ecx, esp
fstp dword [esp + 4]
push eax
call fcn.00404770
push ecx
mov byte [esp + 0x3c], 0x13
mov ecx, esp
mov dword [esp + 0x28], esp
push str.3DNRStrength
call fcn.00403db0
push ecx
mov byte [esp + 0x40], 0x14
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56aabc
call fcn.00403db0
mov byte [esp + 0x40], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [esi + 0x34c]
lea edx, [esp + 0x14]
fldz
mov dword [esp + 0x28], esp
fstp dword [esp + 4]
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0x3c], 0x15
mov ecx, esp
mov dword [esp + 0x28], esp
push str.3DNRStrength
call fcn.00403db0
push ecx
mov byte [esp + 0x40], 0x16
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56aabc
call fcn.00403db0
mov byte [esp + 0x40], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 8
fstp dword [esi + 0x34c]
lea eax, [esp + 0x14]
fldz
mov dword [esp + 0x28], esp
fstp dword [esp + 4]
mov ecx, esp
push eax
call fcn.00404770
mov byte [esp + 0x38], 0x17
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Gamma
call fcn.00403db0
push ecx
mov byte [esp + 0x40], 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x56aabc
call fcn.00403db0
mov byte [esp + 0x40], bl
call fcn.00403f90
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x10]
fstp dword [esi + 0x350]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x19
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Offset
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x1a
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
mov dword [esi + 0x354], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x1b
mov ecx, esp
mov dword [esp + 0x24], esp
push str.AGCMode
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
mov dword [esi + 0x358], eax
mov edi, 1
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x1d
mov ecx, esp
mov dword [esp + 0x24], esp
push str.CurrentTest
call fcn.00403db0
mov byte [esp + 0x38], 0x1e
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
mov dword [esi + 0x35c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x1f
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Mode
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x20
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aabc
call fcn.00403db0
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
mov dword [esi + 0x298], eax
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x21
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56ab40
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x22
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56aecc
call fcn.00403db0
mov ecx, ebx
mov byte [esp + 0x3c], bl
call fcn.00404250
add esp, 8
mov dword [esi + 0x2a0], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push eax
mov edi, 0x64
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x23
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Counter
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x24
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56ab4c
call fcn.00403db0
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00404250
mov dword [esi + 0x6c0], eax
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x24], esp
mov ecx, esp
push edx
mov edi, 1
call fcn.00404770
push ecx
mov byte [esp + 0x38], 0x25
mov ecx, esp
mov dword [esp + 0x24], esp
push str.IsCheck
call fcn.00403db0
push ecx
mov byte [esp + 0x3c], 0x26
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x56ab58
call fcn.00403db0
mov ecx, edi
mov byte [esp + 0x3c], bl
call fcn.00404250
mov dword [esi + 0x29c], eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412d1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret