Function at 0x4fdd90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x63d284]
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 dword [ebp - 0x88], ecx
mov eax, dword [ebp + 0x24]
mov ecx, 7
mov edi, dword [ebp + 0x20]
mov edx, ecx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
cmp eax, ebx
je 0x4fde7c
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 0x78], ebx
jb 0x4fde4d
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
mov ebx, dword [ebx + 0x10]
cmp ebx, 7
ja 0x4fdece
lea esi, [ebx + ebx]
mov dword [ebp - 0x48], ebx
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x58], ax
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x7c], ecx
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x4fe07d
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x78], edi
jb 0x4fde97
mov eax, dword [edi]
mov dword [ebp - 0x78], eax
mov ebx, dword [edi + 0x10]
cmp ebx, ecx
ja 0x4fdf83
cmp ecx, 8
mov dword [ebp - 0x30], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x40]
push eax
push edi
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x74], ecx
jmp 0x4fe080
cmp ebx, 0x7ffffffe
ja 0x4fe262
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4fdef3
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4fdf14
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4fe283
add eax, eax
cmp eax, 0x1000
jb 0x4fdf3b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4fe283
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4fe267
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4fdf56
test eax, eax
je 0x4fdf54
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4fe275
jmp 0x4fdf56
xor edi, edi
mov dword [ebp - 0x44], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x48], ebx
push edi
call fcn.005729d0
add esp, 0xc
mov dword [ebp - 0x58], edi
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x84]
lea ecx, [eax + 7]
jmp 0x4fde7c
cmp ebx, 0x7ffffffe
ja 0x4fe288
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4fdfa8
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4fdfe2
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4fdfc3
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4fdfe2
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4fe283
add eax, eax
cmp eax, 0x1000
jb 0x4fe009
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4fe283
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4fe28d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4fe024
test eax, eax
je 0x4fe022
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4fe29b
jmp 0x4fe024
xor edi, edi
mov dword [ebp - 0x2c], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x30], ebx
push edi
call fcn.005729d0
mov edx, dword [ebp - 0x7c]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x4fe07a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe070
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe2a9
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x28]
cmp eax, edx
je 0x4fe1c4
cmp dword [edx + 0x14], 8
mov eax, edx
mov dword [ebp - 0x7c], edx
jb 0x4fe09e
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ebx, dword [edx + 0x10]
cmp ebx, ecx
ja 0x4fe0cb
cmp ecx, 8
mov dword [ebp - 0x18], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
push eax
push edi
call fcn.00572f50
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x4fe1c4
cmp ebx, 0x7ffffffe
ja 0x4fe2ae
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4fe0f0
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4fe129
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4fe10b
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4fe129
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4fe283
add eax, eax
cmp eax, 0x1000
jb 0x4fe150
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4fe283
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4fe2b3
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4fe16b
test eax, eax
je 0x4fe169
push eax
call fcn.00591cad
mov edi, eax
add esp, 4
test edi, edi
je 0x4fe2c1
jmp 0x4fe16b
xor edi, edi
mov dword [ebp - 0x14], esi
lea esi, [ebx + ebx]
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x18], ebx
push edi
call fcn.005729d0
mov edx, dword [ebp - 0x74]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
cmp edx, 8
jb 0x4fe1c1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe1b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe2cf
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov dword [ebp - 0x28], edi
push 0x645f7c
mov dword [ebp - 0x80], 0x645f7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4fe1f9
mov ecx, eax
call fcn.00509000
add dword [esi + 4], 0x5c
jmp 0x4fe201
push eax
mov ecx, esi
call fcn.00506fc0
cmp dword [esi + 0xc], 0
jne 0x4fe231
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4fb5d0
push 0
push 0
mov dword [esi + 0x10], eax
call fcn.00595261
add esp, 0x18
mov dword [esi + 0xc], eax
push 0x645f7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x6c]
call fcn.004fdca0
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.0056cd75
mov esp, ebp
pop ebp
ret 0x20
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x6d]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x6e]
push eax
call fcn.0057359b
call fcn.00407b84
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x6e]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x6d]
push eax
call fcn.0057359b
call fcn.0057da80
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x6e]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x6d]
push eax
call fcn.0057359b
call fcn.0057da80
int3