Function at 0x542220
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551649
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x5b1700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x49c], edi
call fcn.00407350
xor esi, esi
mov dword [edi + 4], eax
mov dword [edi + 8], esi
mov dword [ebp - 4], esi
call fcn.004ae880
mov dword [edi + 0x10], eax
mov cl, 1
mov byte [eax + 0x15], cl
mov eax, dword [edi + 0x10]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x10]
mov dword [eax], eax
mov eax, dword [edi + 0x10]
mov dword [eax + 8], eax
mov dword [edi + 0x14], esi
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], cl
call fcn.00476090
mov dword [edi + 0x30], esi
mov esi, edi
mov byte [ebp - 4], 3
call fcn.00541e20
mov eax, 0x583068
mov ebx, edi
call fcn.004da960
lea ecx, [ebp - 0x48c]
call fcn.00540d70
mov byte [ebp - 4], 4
mov eax, dword [0x5c4c54]
mov edx, dword [eax + 0xc]
mov ecx, 0x5c4c54
call edx
add eax, 0x10
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48c]
push str.langlang_.dll
push eax
lea esi, [ebp - 0x488]
call fcn.004da8d0
xor ebx, ebx
mov word [ebp - 0x20], 0x5c
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x488]
lea esi, [ebp - 0x478]
call fcn.004d6a70
test eax, eax
je 0x542452
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0x478]
call fcn.004d6e60
mov eax, dword [eax]
push eax
call dword [0x5673f8]
mov esi, eax
mov dword [ebp - 0x490], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x542360
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5c4c54]
mov eax, dword [edx + 0xc]
mov ecx, 0x5c4c54
call eax
add eax, 0x10
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x47c]
push ecx
mov eax, 0x64
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00406390
lea edx, [ebp - 0x520]
mov dword [ebp - 0x524], edx
call dword [section..data]
push eax
mov eax, dword [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x524]
push ecx
call fcn.004a1af0
lea edx, [ebp - 0x524]
push edx
mov byte [ebp - 4], 9
call fcn.004daf40
mov dword [ebp - 0x480], eax
add esp, 4
lea eax, [ebp - 0x480]
mov ebx, edi
call fcn.004da960
mov eax, dword [ebp - 0x524]
lea ecx, [ebp - 0x520]
cmp eax, ecx
je 0x5423f5
push eax
call fcn.004f7b12
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x54241b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov byte [ebp - 4], 6
je 0x54242a
push esi
call dword [0x567408]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x542450
cmp dword [ebp - 0x18], 0
je 0x542450
lea ecx, [ebp - 0x478]
push ecx
push eax
call dword [0x5672ec]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x542317
xor ebx, ebx
mov edx, dword [0x5c4c54]
mov eax, dword [edx + 0xc]
mov ecx, 0x5c4c54
call eax
add eax, 0x10
mov dword [ebp - 0x480], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x48c]
push str.lang_.dll
push ecx
lea esi, [ebp - 0x480]
call fcn.004da8d0
mov eax, dword [ebp - 0x480]
lea esi, [ebp - 0x478]
call fcn.004d6a70
test eax, eax
je 0x542619
lea edx, [ebp - 0x490]
push edx
lea ecx, [ebp - 0x478]
call fcn.004d6e60
mov eax, dword [eax]
push eax
call dword [0x5673f8]
mov esi, eax
mov dword [ebp - 0x4a0], esi
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x490]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5424e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5c4c54]
mov eax, dword [edx + 0xc]
mov ecx, 0x5c4c54
call eax
add eax, 0x10
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x47c]
push ecx
mov bl, 0xc
mov eax, 0x64
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00406390
lea edx, [ebp - 0x520]
mov dword [ebp - 0x524], edx
call dword [section..data]
push eax
mov eax, dword [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x524]
push ecx
call fcn.004a1af0
lea edx, [ebp - 0x524]
push edx
mov byte [ebp - 4], 0xd
call fcn.004daf40
mov dword [ebp - 0x484], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x524]
lea ecx, [ebp - 0x520]
add esp, 4
cmp eax, ecx
je 0x542574
push eax
call fcn.004f7b12
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push edi
push ecx
push edi
lea ecx, [ebp - 0x484]
lea ebx, [ebp - 0x498]
call fcn.004dae30
mov eax, dword [ebp - 0x498]
mov ebx, dword [edi + 4]
add esp, 0x10
test eax, eax
je 0x5425a2
cmp eax, edi
je 0x5425a7
call fcn.004f6492
cmp dword [ebp - 0x494], ebx
jne 0x5425bc
lea eax, [ebp - 0x484]
mov ebx, edi
call fcn.004da960
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5425e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov byte [ebp - 4], 0xa
je 0x5425f1
push esi
call dword [0x567408]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x542617
cmp dword [ebp - 0x18], 0
je 0x542617
lea ecx, [ebp - 0x478]
push ecx
push eax
call dword [0x5672ec]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x54249f
xor ebx, ebx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x480]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x54263f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x18], ebx
je 0x542658
cmp eax, 0xffffffff
je 0x542658
push eax
call dword [0x5672f4]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54267e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5426a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6a32
mov esp, ebp
pop ebp
ret