Function at 0x4cf590
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea283
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x50b06c]
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 edx, ecx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x164], edx
lea eax, [edx + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x124], eax
mov dword [eax], vtable.IStrategyListener.0
mov dword [eax], vtable.DonateStrategy.0
imul eax, dword [ebp + 8], 0xea60
mov dword [edx], vtable.DonateStrategy.1.0
mov byte [edx + 8], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0xc], eax
mov eax, 0x64
sub eax, dword [ebp + 8]
imul eax, eax, 0xea60
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x18], eax
lea eax, [edx + 0x1c]
mov dword [ebp - 0x120], eax
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
push 0x41
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004a1140
mov edx, esi
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4cf656
push ecx
lea eax, [ebp - 0x11c]
sub edx, ecx
push eax
mov ecx, esi
call fcn.004c6860
add esp, 8
xor esi, esi
mov dl, byte [ebp + esi - 0x11c]
mov al, 9
mov cl, dl
shr cl, 4
cmp al, cl
sbb al, al
and dl, 0xf
and al, 0x27
add al, 0x30
add al, cl
mov byte [ebp + esi*2 - 0x54], al
mov al, 9
cmp al, dl
sbb al, al
and al, 0x27
add al, 0x30
add al, dl
mov byte [ebp + esi*2 - 0x53], al
inc esi
cmp esi, 0x20
jb 0x4cf673
movaps xmm0, xmmword [0x5011c0]
mov eax, 0xb284
mov word [ebp - 0x160], 1
mov dword [ebp - 0x15c], 0
mov word [ebp - 0x158], ax
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
push 0
call fcn.004a6274
push str.donate.v2.xmrig.com
call fcn.004af816
mov ebx, eax
mov dword [ebp - 0x13c], ebx
push 0
call fcn.004a6274
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push 0
call fcn.004a6274
lea eax, [ebp - 0x54]
push eax
call fcn.004af816
add esp, 0x14
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 9
test ebx, ebx
jne 0x4cf74c
xor ecx, ecx
jmp 0x4cf75a
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cf751
sub ecx, edx
lea edi, [ecx + 8]
push edi
call fcn.00487ec4
mov esi, eax
add esp, 4
test esi, esi
je 0x4cf77a
push edi
push 0
push esi
call fcn.004a1140
add esp, 0xc
jmp 0x4cf77c
xor esi, esi
push 0xb284
push ebx
push str._s:_d
lea eax, [edi - 1]
push eax
push esi
call fcn.004014d0
push 0
call fcn.004a6274
add esp, 0x18
mov dword [ebp - 0x130], esi
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x160]
mov edi, dword [ebp - 0x120]
mov ecx, edi
push eax
call fcn.0040bb60
mov byte [ebp - 4], 2
push dword [ebp - 0x12c]
call fcn.004a6274
push dword [ebp - 0x130]
call fcn.004a6274
push dword [ebp - 0x134]
call fcn.004a6274
push dword [ebp - 0x138]
call fcn.004a6274
push dword [ebp - 0x13c]
call fcn.004a6274
push dword [ebp - 0x140]
call fcn.004a6274
add esp, 0x18
lea ecx, [ebp - 0x14c]
call fcn.00406070
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x4cf87f
mov edi, dword [ebp + 0x10]
nop dword [eax]
cmp dword [esi + 0x24], 0
je 0x4cf831
cmp word [esi + 8], 0
jbe 0x4cf831
mov al, 1
jmp 0x4cf833
xor al, al
test al, al
je 0x4cf872
mov edx, dword [esi + 0xc]
cmp edx, 0xffffffff
je 0x4cf85f
xor ecx, ecx
cmp dword [ecx + 0x4f9e88], edx
jne 0x4cf854
mov eax, dword [ecx + 0x4f9e8c]
cmp eax, dword [esi + 0x10]
je 0x4cf86b
add ecx, 0x10
cmp ecx, 0x100
jb 0x4cf841
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0xc], edi
call fcn.004cb2c0
mov ecx, esi
call fcn.004cb210
add esi, 0x38
cmp esi, ebx
jne 0x4cf820
mov edi, dword [ebp - 0x120]
mov ecx, dword [edi + 4]
mov eax, 0x92492493
sub ecx, dword [edi]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4cf8c6
push 0x2c
call fcn.00487a02
add esp, 4
mov dword [ebp - 0x120], eax
push 1
push dword [ebp - 0x124]
mov ecx, eax
mov byte [ebp - 4], 0xb
push 2
push 1
push edi
call fcn.004cc390
jmp 0x4cf8ef
push 0x14
call fcn.00487a02
add esp, 4
mov dword [ebp - 0x120], eax
push 1
push dword [ebp - 0x124]
mov byte [ebp - 4], 0xc
mov ecx, eax
push 2
push 1
push dword [edi]
call fcn.004cc670
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x128]
mov edx, dword [0x50f3f8]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x28], ebx
test edx, edx
jne 0x4cf925
call fcn.00477be0
test eax, eax
je 0x4cf916
xor edx, edx
jmp 0x4cf925
mov dword [0x50f3f8], 0x50f400
mov edx, 0x50f400
mov dword [ebx + 0x2c], edx
lea ecx, [ebx + 0x38]
mov dword [ebx + 0x30], 0xd
lea eax, [edx + 8]
mov dword [ebx + 0x54], 0x20
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x3c], eax
mov dword [eax], ecx
mov dword [edx + 0xc], ecx
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
call fcn.004a84ac
movd xmm0, dword [ebx + 0x10]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x501194]
addss xmm1, dword [0x501140]
mulss xmm0, xmm1
call fcn.004e621f
push edx
push eax
mov ecx, ebx
call fcn.004cf3a0
mov eax, ebx
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.004879f1
mov esp, ebp
pop ebp
ret 0x10