Function at 0x49f180
Capabilities:
Create thread
Get number of processors
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5266e4
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x557b14]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
mov eax, dword [0x557b14]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
lea esi, [edi + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], esi
call fcn.004a0760
mov dword [esi + 4], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], 0
mov dword [esp + 0x2b8], 1
mov eax, str.143158193141195135214196221178138218215131163208192197142129159155141
mov dword [0x577b50], edi
mov byte [esp + 0x1b], 0
xor esi, esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x49f210
sub eax, ecx
test eax, eax
jle 0x49f27f
nop
mov al, byte [esi + str.143158193141195135214196221178138218215131163208192197142129159155141]
mov cl, byte [esi + 0x53c0d1]
mov dl, byte [esi + 0x53c0d2]
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], dl
call fcn.004e29cf
or cl, 0xff
sub cl, al
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + eax + 0x1b0], cl
mov eax, str.143158193141195135214196221178138218215131163208192197142129159155141
add esp, 4
add esi, 3
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x49f270
sub eax, edx
cmp esi, eax
jl 0x49f220
mov eax, 0x55555556
imul esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [esp + 0x1ac]
mov byte [esp + ecx + 0x1ac], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x49f2a0
sub eax, edx
add eax, 1
push eax
call fcn.004ae61a
lea ecx, [esp + 0x1b0]
mov edx, eax
mov dword [edi + 0xb0], eax
mov eax, ecx
add esp, 4
sub edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [ecx + edx], al
add ecx, 1
test al, al
jne 0x49f2d0
mov cl, byte [0x577b16]
test cl, cl
je 0x49f314
mov byte [0x577b16], al
mov dl, byte [0x577b16]
test dl, dl
jne 0x49f30d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49f300
push 0x64
call esi
mov al, byte [0x577b16]
test al, al
je 0x49f300
mov byte [0x577b16], 0
lea ebx, [edi + 0xa8]
lea ebp, [edi + 0x6c]
mov dword [edi + 0xa4], 0
mov dword [ebx], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x64], 0
mov dword [ebp], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0xb4], 0
lea ecx, [esp + 0x1ac]
push ecx
lea esi, [esp + 0x38]
mov byte [esp + 0x2bc], 2
call fcn.0049ec80
test al, al
je 0x49f8b2
mov eax, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
cmp byte [edx + eax], 0
setne byte [esp + 0x13]
add eax, 1
mov dword [esp + 0x138], eax
lea eax, [edi + 0x64]
call fcn.0049ef10
lea eax, [edi + 0x84]
push eax
call fcn.0049f000
call fcn.0049ee90
lea ebx, [edi + 0xa4]
call fcn.0049ee90
lea ebx, [edi + 0xac]
call fcn.0049ee90
lea eax, [edi + 0x74]
push eax
call fcn.0049f000
mov eax, ebp
call fcn.0049ef10
lea eax, [edi + 0x70]
call fcn.0049ef10
lea ebx, [edi + 0x94]
call fcn.0049ee90
lea ebx, [edi + 0x98]
call fcn.0049ee90
lea ebx, [edi + 0x78]
call fcn.0049ee90
lea ebx, [edi + 0x68]
call fcn.0049ee90
lea ebx, [edi + 0x7c]
call fcn.0049ee90
lea eax, [edi + 0x88]
push eax
call fcn.0049efb0
lea ebx, [edi + 0x24]
call fcn.0049ee90
lea ebx, [edi + 0x28]
call fcn.0049ee90
lea eax, [edi + 0x4c]
lea ebx, [edi + 0x48]
push eax
call fcn.0049f0a0
lea eax, [edi + 0x50]
call fcn.0049ef10
lea eax, [edi + 0x54]
call fcn.0049ef10
lea eax, [edi + 0x58]
call fcn.0049ef10
lea eax, [edi + 0x5c]
call fcn.0049ef10
lea eax, [edi + 0x60]
call fcn.0049ef10
lea eax, [edi + 0x2c]
call fcn.0049ef10
lea eax, [edi + 0x30]
call fcn.0049ef10
lea eax, [edi + 0x34]
call fcn.0049ef10
lea eax, [edi + 0x38]
call fcn.0049ef10
lea ebx, [edi + 0xb4]
call fcn.0049ee90
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
cmp byte [ecx + eax], 0
setne dl
add eax, 1
mov dword [esp + 0x138], eax
lea eax, [edi + 0x10]
push eax
mov byte [edi + 0x14], dl
call fcn.0049f050
lea eax, [edi + 0x1c]
call fcn.0049ef10
lea eax, [edi + 0x20]
call fcn.0049ef10
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
cmp byte [ecx + eax], 0
setne dl
add eax, 1
lea ebx, [edi + 0x3c]
mov byte [edi + 0x44], dl
mov dword [esp + 0x138], eax
call fcn.0049ee90
lea ebx, [edi + 0x40]
call fcn.0049ee90
lea eax, [edi + 0x18]
call fcn.0049ef10
lea eax, [edi + 0xb8]
push eax
call fcn.0049f000
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
push ecx
push edx
push edi
call fcn.004a5530
lea ebx, [esp + 0x14]
mov dword [esp + 0x138], eax
mov dword [esp + 0x14], 0
call fcn.0049ee90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49f5e1
push eax
call fcn.004e0f9f
add esp, 4
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
mov ecx, dword [ecx + eax]
lea edx, [eax + 4]
lea eax, [eax + ecx + 4]
lea ebx, [esp + 0x14]
lea esi, [esp + 0x34]
mov dword [0x577b84], edx
mov dword [0x577b88], ecx
mov dword [esp + 0x138], eax
mov dword [esp + 0x14], 0
call fcn.0049ee90
mov eax, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
mov ecx, dword [edx + eax]
mov dword [0x577b90], ecx
lea esi, [eax + 4]
lea ecx, [eax + ecx + 4]
push edx
mov dword [0x577b8c], esi
mov dword [esp + 0x13c], ecx
call fcn.004e10b6
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x84]
mov ecx, dword [ebp]
add esp, 4
xor ebx, ebx
push edx
mov edx, dword [edi + 0x64]
push eax
mov dword [esp + 0x13c], ebx
mov dword [edi + 0x9c], ebx
mov byte [edi + 0x90], bl
mov dword [edi + 0xa0], ebx
mov byte [edi + 0x81], bl
call fcn.004a8a30
mov dword [edi + 0x8c], eax
add esp, 8
mov dword [edi], 0xffffffff
call fcn.004a88d0
mov byte [edi + 0x80], al
mov eax, dword [0x577b50]
cmp byte [eax + 0x44], bl
jne 0x49f6d2
mov esi, dword [eax + 0x7c]
mov ebp, dword [eax + 0x38]
mov edx, dword [eax + 0xa8]
mov ecx, dword [eax + 0xac]
mov eax, dword [eax + 0x64]
push 2
push esi
push ebp
push eax
call fcn.004a8290
add esp, 0x10
mov edx, dword [edi + 0x64]
lea ecx, [esp + 0x144]
push ecx
push edx
lea ecx, [esp + 0x180]
call fcn.004a9800
add esp, 8
test al, al
je 0x49f707
push ebx
lea eax, [esp + 0x17c]
push eax
push edi
lea ecx, [esp + 0x150]
call fcn.0049fc30
movzx ecx, word [edi + 0x88]
mov esi, dword [edi + 0xa0]
cmp esi, ebx
mov edx, dword [edi + 0x98]
mov eax, dword [edi + 0x94]
mov ebp, dword [edi + 0x9c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x49f761
cmp ebp, ebx
je 0x49f761
push 7
push eax
push ebp
call fcn.004e2c04
add esp, 0xc
test eax, eax
jne 0x49f761
mov eax, dword [esp + 0x20]
push eax
push ebx
push esi
push ebp
call fcn.0050b2c8
cmp ax, word [esp + 0x1c]
jl 0x49f761
mov byte [edi + 0x90], 1
movzx ecx, word [edi + 0x88]
mov esi, dword [edi + 0xa0]
cmp esi, ebx
mov edx, dword [edi + 0x98]
mov eax, dword [edi + 0x94]
mov ebp, dword [edi + 0x9c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
je 0x49f7ec
cmp ebp, ebx
je 0x49f7ec
push 7
push eax
push ebp
call fcn.004e2c04
add esp, 0xc
test eax, eax
jne 0x49f7ec
mov eax, dword [esp + 0x1c]
push eax
push ebx
push esi
push ebp
call fcn.0050b2c8
cmp ax, word [esp + 0x20]
jl 0x49f7ec
cmp byte [esp + 0x13], bl
je 0x49f7ec
cmp byte [edi + 0x14], bl
je 0x49f7e3
lea ecx, [esp + 0x24]
push ecx
call fcn.004e3d0d
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x10]
xor eax, eax
add esp, 4
cmp edx, eax
jg 0x49f856
jl 0x49f7e3
mov eax, dword [esp + 0x24]
cmp eax, ecx
jae 0x49f856
mov byte [edi + 0x81], 1
jmp 0x49f856
push 0x5779ac
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5779a8
push ebx
push ebx
push 0x49ebd0
push ebx
push ebx
mov byte [0x577b16], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [0x577b54], eax
jne 0x49f821
mov byte [0x577b16], bl
push ebx
mov cl, 1
mov edx, edi
call fcn.004a4b00
add esp, 4
cmp byte [edi + 0x81], bl
jne 0x49f856
mov cl, byte [0x577b16]
test cl, cl
je 0x49f856
push 0xffffffffffffffff
push ebx
push 0x577b54
push 1
mov byte [0x577b16], bl
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp dword [edi + 0x48], ebx
jne 0x49f862
push 5
call fcn.004e0dd9
mov byte [esp + 0x2b8], 1
mov eax, dword [esp + 0x134]
cmp eax, ebx
je 0x49f87e
push eax
call fcn.004e10b6
add esp, 4
mov dword [esp + 0x2b8], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.004e0010
add esp, 0x2ac
ret
push 1
call fcn.004e0dd9
int3