Function at 0x42e700
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
cmp esi, ebx
mov edi, ecx
je 0x42e969
cmp dword [esi + 0x5e4], ebx
je 0x42e728
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 8
mov eax, dword [edi + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x394], eax
mov dword [esi + 0x5ec], ecx
mov dword [esi + 0x5f0], ebx
mov eax, dword [edi + 0xb4]
cmp eax, 5
jge 0x42e76d
mov edx, dword [esi]
push 0xa
push edx
mov ecx, edi
mov dword [esi + 0x5e4], 1
call fcn.0042f2d0
push esi
push ebx
mov ecx, edi
call fcn.0042d240
jmp 0x42e779
mov eax, dword [esi]
push 6
push eax
mov ecx, edi
call fcn.0042f2d0
mov eax, dword [edi + 0x4c]
add edi, 0x4c
cmp eax, ebx
mov dword [esp + 0x18], edi
jne 0x42e95d
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push ebx
push ebx
push 0x42df00
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov eax, dword [0x56fbf0]
mov edx, dword [0x56fbf4]
mov esi, eax
sub edx, eax
sar edx, 2
cmp edx, 1
jae 0x42e8c0
mov edx, dword [0x56fbec]
cmp edx, ebx
je 0x42e7df
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jbe 0x42e7df
mov ecx, eax
sub ecx, edx
sar ecx, 2
jmp 0x42e7e4
mov ecx, 1
cmp edx, ebx
jne 0x42e7ec
xor eax, eax
jmp 0x42e7f1
sub eax, edx
sar eax, 2
add eax, ecx
cmp eax, ebx
mov dword [esp + 0xc], eax
jge 0x42e7fd
xor eax, eax
lea edx, [eax*4]
push ebp
push edx
call sub.MFC42.DLL_operatornew
mov ebx, dword [0x56fbec]
add esp, 4
mov ebp, eax
cmp ebx, esi
mov edi, ebp
je 0x42e830
push ebx
push edi
call fcn.00414950
add ebx, 4
add esp, 8
add edi, 4
cmp ebx, esi
jne 0x42e81c
mov eax, dword [esp + 0x1c]
mov ecx, 0x56fbe8
push eax
push 1
push edi
call fcn.00419b30
mov ecx, dword [0x56fbf0]
add edi, 4
push edi
push ecx
push esi
mov ecx, 0x56fbe8
call fcn.00480680
mov edx, dword [0x56fbf0]
mov eax, dword [0x56fbec]
push edx
push eax
mov ecx, 0x56fbe8
call fcn.0040d6e0
mov ecx, dword [0x56fbec]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x14]
mov ecx, dword [0x56fbec]
add esp, 4
lea eax, [ebp + edx*4]
test ecx, ecx
mov dword [0x56fbf4], eax
jne 0x42e899
xor eax, eax
jmp 0x42e8a3
mov eax, dword [0x56fbf0]
sub eax, ecx
sar eax, 2
lea ecx, [ebp + eax*4 + 4]
mov dword [0x56fbec], ebp
pop ebp
pop edi
pop esi
mov dword [0x56fbf0], ecx
mov eax, 1
pop ebx
pop ecx
ret 8
mov edx, eax
sub edx, esi
sar edx, 2
cmp edx, 1
jae 0x42e915
lea ecx, [esi + 4]
push ecx
push eax
push esi
mov ecx, 0x56fbe8
call fcn.00480680
mov eax, dword [0x56fbf0]
mov ecx, 1
mov edx, eax
push edi
sub edx, esi
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, 0x56fbe8
call fcn.00419b30
mov ecx, dword [0x56fbf0]
mov eax, esi
cmp esi, ecx
je 0x42e956
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x42e908
jmp 0x42e956
push eax
push eax
add eax, 0xfffffffc
mov ecx, 0x56fbe8
push eax
call fcn.00480680
mov eax, dword [0x56fbf0]
mov ecx, eax
add eax, 0xfffffffc
cmp esi, eax
je 0x42e942
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x42e933
lea ecx, [esi + 4]
mov eax, esi
cmp esi, ecx
je 0x42e956
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x42e94b
add dword [0x56fbf0], 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8