Function at 0x4f6780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d83d4
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x634254]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x24], 0
je 0x4f67c6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
mov byte [ebx + 0x24], 1
cmp edi, eax
je 0x4f681d
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x18], eax
jb 0x4f67e2
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp eax, ecx
ja 0x4f684d
mov dword [ebp + 8], edi
mov edx, edi
cmp ecx, 8
jb 0x4f6801
mov edx, dword [edi]
mov dword [ebp + 8], edx
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push dword [ebp - 0x18]
push edx
call fcn.00570d00
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x30], eax
call fcn.004f4cc0
push 0x18
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f69a4
jmp 0x4f6958
cmp eax, 0x7ffffffe
ja 0x4f69b2
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4f6871
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f68ab
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4f688c
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f68ab
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4f69d8
add eax, eax
cmp eax, 0x1000
jb 0x4f68d4
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f69d8
push ecx
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4f69b7
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4f68f0
test eax, eax
je 0x4f68ee
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4f69c5
jmp 0x4f68f3
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x18]
push eax
call fcn.00570780
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x4f6951
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4f6944
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f69d3
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
jmp 0x4f681d
mov dword [ebp + 8], eax
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004f5630
lea ecx, [ebx + 0x28]
mov dword [ebp - 4], 0xffffffff
push ecx
push 0
push eax
push 0x4f63c0
push 0
push 0
call fcn.00592655
add esp, 0x18
mov dword [ebx], eax
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x630328
lea eax, [ebp + 0xf]
push eax
call fcn.0057134b
call fcn.004072dc
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp - 0xd]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.00407541
int3