Function at 0x463520
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
push 0
push 0xbb9
mov dword [esi + 0x1e4], 0
call fcn.00421f40
mov eax, dword [esi + 0x210]
lea edi, [esi + 0x210]
add esp, 0xc
mov dword [esp + 0x10], edi
test eax, eax
je 0x463575
push eax
call fcn.004208c0
add esp, 4
test eax, eax
je 0x463575
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi], 0
mov ecx, dword [esi + 0x20]
push 1
push ecx
mov ecx, 0x571c00
call fcn.0042c5f0
mov ebp, dword [esi + 0x90]
mov ebx, dword [esi + 0x8c]
mov edi, ebp
cmp edi, ebp
je 0x4635a9
push edi
mov ecx, ebx
call fcn.00464e20
add edi, 0x64
add ebx, 0x64
cmp edi, ebp
jne 0x463597
mov ebp, dword [esi + 0x90]
mov edi, ebx
cmp ebx, ebp
je 0x4635c3
mov ecx, edi
call fcn.00464f30
add edi, 0x64
cmp edi, ebp
jne 0x4635b5
lea edx, [esp + 0x14]
mov dword [esi + 0x90], ebx
push edx
push 0
push esi
push 0x4634c0
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [0x56fbf0]
mov ecx, dword [0x56fbf4]
mov esi, eax
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jae 0x4636e1
mov ecx, dword [0x56fbec]
test ecx, ecx
je 0x463628
mov edx, eax
sub edx, ecx
sar edx, 2
cmp edx, 1
jbe 0x463628
sub eax, ecx
sar eax, 2
mov edi, eax
jmp 0x46362d
mov edi, 1
mov ecx, 0x56fbe8
call fcn.0040d680
mov ebp, eax
add ebp, edi
mov eax, ebp
jns 0x463641
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [0x56fbec]
add esp, 4
mov edi, eax
push edi
push esi
push ecx
mov ecx, 0x56fbe8
call fcn.00480680
mov edx, dword [esp + 0x10]
mov ebx, eax
push edx
push 1
push ebx
mov ecx, 0x56fbe8
call fcn.00419b30
mov eax, dword [0x56fbf0]
add ebx, 4
push ebx
push eax
push esi
mov ecx, 0x56fbe8
call fcn.00480680
mov ecx, dword [0x56fbf0]
mov edx, dword [0x56fbec]
push ecx
push edx
mov ecx, 0x56fbe8
call fcn.0040d6e0
mov eax, dword [0x56fbec]
push eax
call sub.MFC42.DLL_operatordelete
lea ecx, [edi + ebp*4]
add esp, 4
mov dword [0x56fbf4], ecx
mov ecx, 0x56fbe8
call fcn.0040d680
lea edx, [edi + eax*4 + 4]
mov dword [0x56fbec], edi
pop edi
pop esi
pop ebp
mov dword [0x56fbf0], edx
mov eax, 1
pop ebx
add esp, 8
ret
mov ecx, eax
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0x463736
lea edx, [esi + 4]
mov ecx, 0x56fbe8
push edx
push eax
push esi
call fcn.00480680
mov eax, dword [0x56fbf0]
mov edx, 1
mov ecx, eax
push edi
sub ecx, esi
sar ecx, 2
sub edx, ecx
mov ecx, 0x56fbe8
push edx
push eax
call fcn.00419b30
mov ecx, dword [0x56fbf0]
mov eax, esi
cmp esi, ecx
je 0x463777
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x463729
jmp 0x463777
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 0x463763
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x463754
lea ecx, [esi + 4]
mov eax, esi
cmp esi, ecx
je 0x463777
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x46376c
mov eax, dword [0x56fbf0]
pop edi
add eax, 4
pop esi
mov dword [0x56fbf0], eax
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret