Function at 0x40b018
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [0x410c20], 0
mov ebx, dword [0x41226c]
je 0x40b093
add ebx, 0x197ebd51
xor eax, eax
mov dword [0x41226c], ebx
cmp byte [eax + str.IsLowPriorityConfiguration], 0
je 0x40b060
inc eax
cmp eax, 0x1141
jne 0x40b03e
call fcn.0040df20
xor ebx, 0x3d354df5
mov dword [0x41226c], ebx
mov ebx, dword [0x41226c]
call fcn.0040edb4
xor ebx, 0x2a231b0d
sub ebx, 0x46f95329
or ebx, 0xa739cf9a
xor ebx, 0x37657d67
mov dword [0x41226c], ebx
call fcn.0040d768
jmp 0x40b37d
or ebx, 0xc91db7f6
sub ebx, 0x279602bb
or ebx, 0x90508b7
mov eax, dword fs:[0x30]
mov dword [0x41226c], ebx
mov esi, dword [eax + 0xc]
xor eax, eax
cmp byte [eax + str.IsLowPriorityConfiguration], 0
je 0x40b0f9
inc eax
cmp eax, 0x24b
jne 0x40b0b6
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
add ebx, 0x5245bcc3
mov dword [esp + 8], str.address_not_available
mov dword [esp + 4], 0x412e70
mov dword [esp], str.PartA_PrivTags
call fcn.0040c518
mov dword [0x41226c], ebx
jmp 0x40b106
sub ebx, 0x27559dfe
cmp eax, 0xf8
jle 0x40b112
mov ebx, dword [0x41226c]
xor ebx, 0x4d75550a
or ebx, 0x5c3fb939
mov dword [0x41226c], ebx
call fcn.0040bf40
mov edx, 0x412e70
mov al, byte [edx]
test al, al
je 0x40b146
sub eax, 0x30
cmp al, 9
jbe 0x40b143
sub ebx, 0x5380190a
mov dword [0x41226c], ebx
jmp 0x40b146
inc edx
jmp 0x40b128
mov ebx, dword [0x41226c]
mov eax, ebx
xor eax, 0x3f49597d
mov dword [0x41226c], eax
call fcn.0040df20
mov esi, dword [esi + 0xc]
xor edx, edx
xor eax, eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40b1a5
mov edx, dword [ecx + 0x3c]
mov edx, dword [ecx + edx + 0x78]
test edx, edx
je 0x40b19f
lea eax, [ecx + edx]
mov edi, dword [eax + 0xc]
add edi, ecx
mov edx, dword [edi]
or edx, 0x20202020
cmp edx, 0x6c64746e
jne 0x40b19f
mov edx, dword [edi + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x40b1ae
mov esi, dword [esi]
mov edx, ecx
jmp 0x40b164
test eax, eax
jne 0x40b1b0
jmp 0x40b382
mov edx, ecx
mov ecx, dword [eax + 0x20]
mov esi, dword [eax + 0x18]
mov dword [0x412ea0], edx
xor ebx, 0xa916dfce
mov edi, dword [eax + 0x1c]
mov dword [0x41226c], ebx
xor ebx, ebx
add ecx, edx
dec esi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x24]
add edi, edx
add ecx, edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + esi*4]
mov ecx, dword [0x41226c]
add eax, edx
mov dword [ebp - 0x24], ecx
cmp word [eax], 0x775a
jne 0x40b24a
mov dword [esp], eax
lea ecx, [ebx*8 + 0x410c24]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
call fcn.0040afec
mov ecx, dword [ebp - 0x28]
mov dword [ebx*8 + 0x410c24], eax
mov eax, dword [ebp - 0x20]
inc ebx
movzx eax, word [eax + esi*2]
mov eax, dword [edi + eax*4]
mov dword [ecx + 4], eax
call fcn.0040db30
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
add eax, 0x372efae2
imul eax, eax, 0x3a4f1a3d
or eax, 0xf67b4bfc
cmp ebx, 0x226
mov dword [0x41226c], eax
je 0x40b255
lea eax, [esi - 1]
test esi, esi
je 0x40b255
mov esi, eax
jmp 0x40b1dd
mov edx, 0x41231c
mov al, byte [edx]
test al, al
je 0x40b27b
sub eax, 0x30
cmp al, 9
jbe 0x40b278
imul eax, dword [0x41226c], 0xd2816a92
mov dword [0x41226c], eax
jmp 0x40b27b
inc edx
jmp 0x40b25a
sub dword [0x41226c], 0x98aecb8
mov dword [0x410c20], ebx
dec ebx
test ebx, ebx
je 0x40b348
xor esi, esi
mov edi, dword [0x41226c]
cmp esi, ebx
jae 0x40b28b
mov edx, dword [esi*8 + 0x410c28]
inc esi
mov ecx, dword [esi*8 + 0x410c28]
cmp ecx, edx
jae 0x40b296
mov dword [ebp - 0x20], ecx
add edi, 0x7b5e2fa7
mov dword [ebp - 0x1c], edx
imul edi, edi, 0x7c7da350
call fcn.0040db30
mov ecx, dword [esi*8 + 0x410c24]
mov eax, dword [esi*8 + 0x410c1c]
mov edx, dword [ebp - 0x1c]
mov dword [esi*8 + 0x410c1c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esi*8 + 0x410c24], eax
mov dword [esi*8 + 0x410c20], ecx
lea ecx, [edi - 0x35d70a01]
mov dword [0x41226c], ecx
mov ecx, 0x412654
mov al, byte [ecx]
test al, al
je 0x40b322
sub eax, 0x30
cmp al, 9
jbe 0x40b31f
sub edi, 0x7223ed2c
mov dword [0x41226c], edi
jmp 0x40b322
inc ecx
jmp 0x40b304
mov eax, dword [0x41226c]
mov dword [esi*8 + 0x410c28], edx
sub eax, 0x11130148
imul eax, eax, 0xcd56c0f4
and eax, 0x26599cbc
mov dword [0x41226c], eax
jmp 0x40b296
mov edx, 0x41231c
mov al, byte [edx]
test al, al
je 0x40b369
sub eax, 0x30
cmp al, 9
jbe 0x40b366
xor dword [0x41226c], 0x487939ef
jmp 0x40b369
inc edx
jmp 0x40b34d
mov eax, dword [0x41226c]
add eax, 0x7cffb86d
xor eax, 0xa6b4428d
mov dword [0x41226c], eax
mov ecx, 1
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret