Function at 0x47d2c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de7e5
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x520404]
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.0049a7d0
push 7
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0049a7d0
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
mov byte [ebp - 4], 3
jb 0x47d31c
mov esi, dword [ebp + 8]
push 0x4e5ba8
lea ecx, [ebp - 0x60]
call fcn.0049adf0
push eax
push esi
call fcn.0048cd80
add esp, 8
lea ecx, [ebp - 0x60]
push 0x4e5bac
call fcn.0049adf0
push eax
push 1
call fcn.0048ccb0
add esp, 8
lea ecx, [ebp - 0x80]
push 0
call fcn.0049a7d0
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], eax
cmp esi, eax
je 0x47d439
lea ebx, [ebx]
push esi
lea ecx, [ebp - 0x40]
call fcn.00417e10
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x28]
call fcn.00417e10
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 6
jb 0x47d399
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
call fcn.0049abf0
push eax
push edi
call fcn.0048cd80
mov edx, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x47d3e7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47d3dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d65f
push edx
push ecx
call fcn.004a7d37
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 0x47d42d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47d423
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d65f
push edx
push ecx
call fcn.004a7d37
add esp, 8
add esi, 0x30
cmp esi, dword [ebp - 0x4c]
jne 0x47d370
lea eax, [ebp - 0x80]
push eax
push 0x4e5bb0
lea ecx, [ebp - 0x60]
call fcn.0049adf0
mov ecx, eax
call fcn.0049ab80
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x70]
call fcn.0049b200
lea ecx, [ebp - 0x70]
call fcn.0049b510
test al, al
jne 0x47d583
cmp dword [ebx + 0x80], 0
jne 0x47d49f
cmp dword [ebx + 4], 0
jne 0x47d495
push 0
push 0
push ebx
push 0x47e1a0
push 0
push 0
call fcn.004b5208
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.0049a7d0
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.0049ab80
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.0047e670
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.004903c0
lea ecx, [ebp - 0x30]
call fcn.0049aab0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x47d583
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47d579
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d65f
push edx
push ecx
call fcn.004a7d37
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.0049aab0
lea ecx, [ebp - 0x60]
call fcn.0049aab0
lea ecx, [ebp - 0x70]
call fcn.0049aab0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x47d5cf
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47d5c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d664
push edx
push ecx
call fcn.004a7d37
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 0x47d641
mov edi, dword [ebp + 0x24]
cmp esi, edi
je 0x47d601
nop
mov ecx, esi
call fcn.0047b200
add esi, 0x30
cmp esi, edi
jne 0x47d5f0
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 0x47d637
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d664
push ecx
push esi
call fcn.004a7d37
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.004a7f4e
mov esp, ebp
pop ebp
ret 0x28
call fcn.004af45f
call fcn.004af45f
int3