Function at 0x47c770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfa55
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5203c4]
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 ebx, ecx
push 6
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 1
call fcn.0049b700
push 7
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0049b700
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
mov byte [ebp - 4], 3
jb 0x47c7cc
mov esi, dword [ebp + 8]
push 0x4e6c30
lea ecx, [ebp - 0x60]
call fcn.0049bd20
push eax
push esi
call fcn.00488220
add esp, 8
lea ecx, [ebp - 0x60]
push 0x4e6c34
call fcn.0049bd20
push eax
push 1
call fcn.00488150
add esp, 8
lea ecx, [ebp - 0x80]
push 0
call fcn.0049b700
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], eax
cmp esi, eax
je 0x47c8e9
lea ebx, [ebx]
push esi
lea ecx, [ebp - 0x40]
call fcn.00413a10
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x28]
call fcn.00413a10
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 6
jb 0x47c849
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
call fcn.0049bb20
push eax
push edi
call fcn.00488220
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x47c897
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47c88d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cb0f
push edx
push ecx
call fcn.004a8c37
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x47c8dd
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47c8d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cb0f
push edx
push ecx
call fcn.004a8c37
add esp, 8
add esi, 0x30
cmp esi, dword [ebp - 0x4c]
jne 0x47c820
lea eax, [ebp - 0x80]
push eax
push 0x4e6c38
lea ecx, [ebp - 0x60]
call fcn.0049bd20
mov ecx, eax
call fcn.0049bab0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x70]
call fcn.0049c130
lea ecx, [ebp - 0x70]
call fcn.0049c440
test al, al
jne 0x47ca33
cmp dword [ebx + 0x80], 0
jne 0x47c94f
cmp dword [ebx + 4], 0
jne 0x47c945
push 0
push 0
push ebx
push 0x47d650
push 0
push 0
call fcn.004b7554
add esp, 0x18
mov dword [ebx + 4], eax
mov dword [ebx + 0x80], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.0049b700
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x30]
call fcn.0049bab0
mov eax, dword [ebp + 0x2c]
lea esi, [ebx + 0x98]
push esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x4c], 1
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebx + 0x84]
call fcn.0047db20
push esi
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebx + 8]
mov dword [ebx + 0x64], 0
call fcn.0048b2f0
lea ecx, [ebp - 0x30]
call fcn.0049b9e0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x47ca33
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47ca29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cb0f
push edx
push ecx
call fcn.004a8c37
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.0049b9e0
lea ecx, [ebp - 0x60]
call fcn.0049b9e0
lea ecx, [ebp - 0x70]
call fcn.0049b9e0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x47ca7f
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47ca75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cb14
push edx
push ecx
call fcn.004a8c37
add esp, 8
mov esi, dword [ebp + 0x20]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
test esi, esi
je 0x47caf1
mov edi, dword [ebp + 0x24]
cmp esi, edi
je 0x47cab1
nop
mov ecx, esi
call fcn.0047a870
add esi, 0x30
cmp esi, edi
jne 0x47caa0
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x28]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 4
cmp ecx, 0x1000
jb 0x47cae7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cb14
push ecx
push esi
call fcn.004a8c37
add esp, 8
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.004a8e4e
mov esp, ebp
pop ebp
ret 0x28
call fcn.004b040f
call fcn.004b040f
int3