Function at 0x47d440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c739b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4eb5e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x58], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
call fcn.0047e720
lea eax, [edi + 0xa4]
mov dword [ebp - 0x88], vtable.CCriticalLock.0
mov dword [ebp - 0x84], eax
add eax, 4
push eax
mov dword [ebp - 0x54], eax
call dword [0x4c80bc]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0
test eax, eax
je 0x47d751
cmp dword [ebp + 0xc], 0
je 0x47d751
mov esi, dword [edi + 8]
test esi, esi
jne 0x47d4cd
call fcn.0047df20
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [edi + 8], esi
cmp dword [esi + 0xc], 0
jne 0x47d5c2
cmp dword [esi + 0x10], 0
movzx ecx, word [eax + 0xe]
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x50], ecx
mov ecx, dword [eax + 4]
movzx eax, word [eax + 2]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], edx
jne 0x47d751
mov eax, dword [esi + 8]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [esi + 8]
test eax, eax
jns 0x47d52d
mov eax, dword [ecx]
push 1
push dword [ebp - 0x40]
push ecx
call dword [eax + 0x18]
test eax, eax
js 0x47d751
mov dword [esi + 0xc], 1
jmp 0x47d5c2
push 0
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push edx
mov dword [ebp - 0x74], 0
lea edx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x14
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x47d5c2
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov edx, dword [ebp - 0x4c]
mov word [ebp - 0x2c], ax
mov eax, 1
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x48]
mov word [ebp - 0x2e], cx
mov word [ebp - 0x3a], ax
shr cx, 3
movzx eax, ax
movzx ecx, cx
imul ecx, eax
mov dword [ebp - 0x38], edx
movzx eax, cx
imul eax, edx
lea edx, [ebp - 0x3c]
mov word [ebp - 0x30], cx
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x47d5c2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x44]
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x6c], 0x14
mov dword [ebp - 0x68], 0x181c8
movzx eax, word [edx + 2]
movzx ecx, word [edx + 0xe]
imul ecx, eax
imul ecx, dword [edx + 4]
shr ecx, 3
mov dword [edi + 0x40], ecx
lea esi, [ecx*4]
movzx ecx, word [edx + 0xc]
mov eax, esi
xor edx, edx
div ecx
mov eax, dword [ebp - 0x44]
sub esi, edx
mov dword [ebp - 0x5c], eax
mov dword [edi + 0x40], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x64], esi
test eax, eax
jne 0x47d61d
call fcn.0047df20
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
lea esi, [edi + 0xc]
push 0
push esi
lea edx, [ebp - 0x6c]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jns 0x47d669
mov eax, dword [edi + 8]
mov dword [ebp - 0x68], 0x10100
test eax, eax
jne 0x47d64a
call fcn.0047df20
mov dword [edi + 8], eax
mov eax, dword [eax + 8]
lea edx, [ebp - 0x6c]
push 0
push esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x47d669
mov dword [esi], 0
jmp 0x47d751
mov ecx, dword [esi]
lea edx, [edi + 0x10]
push edx
push 0x4d0390
push ecx
mov eax, dword [ecx]
mov dword [ebp - 0x48], edx
call dword [eax]
test eax, eax
js 0x47d74a
mov eax, 0xaaaaaaab
lea ecx, [edi + 0x54]
mul dword [edi + 0x40]
mov dword [ebp - 0x4c], ecx
mov eax, edx
shr eax, 1
xor esi, esi
mov dword [ebp - 0x50], eax
lea edi, [eax - 1]
nop
mov eax, dword [ecx]
mov dword [ebp + esi*8 - 0x28], edi
mov eax, dword [eax]
call eax
add edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp + esi*8 - 0x24], eax
inc esi
cmp esi, 3
jl 0x47d6a0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
push edx
push 3
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, dword [ebp - 0x58]
test eax, eax
js 0x47d74a
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x78]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x54]
push 3
push eax
mov dword [edi + 0x70], 0x14
call fcn.0047d250
push 2
lea eax, [edi + 0x5c]
push eax
lea ecx, [edi + 0x78]
call fcn.0047d250
lea eax, [edi + 0xa0]
push eax
push 0
push edi
push 0x47ed70
push 0
push 0
call fcn.0048d1c6
add esp, 0x18
mov dword [edi + 0x9c], eax
test eax, eax
je 0x47d74a
push 0xf
push eax
call dword [0x4c8194]
mov edx, dword [edi + 0xc8]
lea ecx, [edi + 0xc8]
push 0xffffffffffffffff
call dword [edx + 0xc]
push dword [ebp - 0x54]
call dword [0x4c80b8]
mov eax, 1
jmp 0x47d75c
mov ecx, edi
call fcn.0047e720
push dword [ebp - 0x54]
call dword [0x4c80b8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00481a14
mov esp, ebp
pop ebp
ret 8