Function at 0x46eb60
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x526038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x44]
mov dword [esp + 0xc], esi
cmp eax, edi
jne 0x46eba4
lea eax, [esp + 8]
mov dword [esp + 8], edi
push eax
push edi
push edi
push 0x46e030
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x44], eax
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x46eda5
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x46eda5
mov edx, dword [esi + 8]
sub edx, eax
test edx, 0xfffffffc
je 0x46eda5
mov al, byte [esp + 0x34]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ecx
push edi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
call fcn.00423b50
mov ebp, dword [esi + 8]
mov ebx, dword [esi + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov esi, ebp
mov dword [esp + 0x24], edi
sub esi, ebx
mov dword [esp + 0x3c], ebp
sar esi, 2
sar ecx, 2
cmp ecx, esi
mov edi, eax
jae 0x46ecd1
test eax, eax
je 0x46ec32
neg eax
sar eax, 2
cmp esi, eax
mov ebp, eax
jb 0x46ec34
mov ebp, esi
lea ecx, [esp + 0x1c]
call fcn.0040d680
add eax, ebp
mov dword [esp + 0x40], eax
jns 0x46ec47
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ebp
push edi
push eax
call fcn.004421f0
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.004421f0
mov edx, dword [esp + 0x24]
push eax
push edx
push edi
lea ecx, [esp + 0x28]
call fcn.004421f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00423b50
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x44]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
call fcn.0040d680
add eax, esi
mov dword [esp + 0x20], ebp
lea edx, [ebp + eax*4]
mov dword [esp + 0x24], edx
jmp 0x46ed56
mov ecx, eax
neg ecx
sar ecx, 2
cmp ecx, esi
jae 0x46ed20
shl esi, 2
lea ecx, [esp + 0x1c]
lea edx, [esi + eax]
push edx
push 0
push eax
call fcn.004421f0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
sub eax, edi
sar eax, 2
push ebp
lea eax, [ebx + eax*4]
push eax
call fcn.004421f0
mov ecx, dword [esp + 0x24]
push edi
sub ecx, edi
sar ecx, 2
lea edx, [ebx + ecx*4]
push edx
push ebx
call fcn.00470070
add esp, 0xc
jmp 0x46ed52
test esi, esi
jbe 0x46ed56
shl esi, 2
mov eax, esi
push 0
neg eax
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004421f0
mov eax, dword [esp + 0x24]
push eax
sub eax, esi
push eax
push edi
call fcn.00442290
push edi
push ebp
push ebx
call fcn.00470070
add esp, 0x18
add dword [esp + 0x24], esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0046de30
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00423b50
mov ecx, dword [esp + 0x20]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, dword [esp + 0x24]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8