Function at 0x404cc0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x409ff6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x930
xor eax, eax
push ebx
mov dword [esp + 4], eax
push ebp
mov dword [esp + 0xc], eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
push 0x2800
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404cef
mov edx, dword [esi + 0xa4]
lea ecx, [esp + 0x10]
push 0xc
push ecx
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
je 0x404fdc
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp word [esp + 0x14], 0x2800
ja case.0x404d4c.2
mov ecx, 0xa00
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 0xa
ja case.0x404d4c.2
jmp dword [eax*4 + 0x405030]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xa4]
and ecx, 0xffff
push ecx
push ebx
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
je case.0x404d4c.2
lea ecx, [esp + 0x1b4]
call fcn.00401570
mov eax, dword [esp + 0x16]
lea ecx, [esp + 0x1b4]
and eax, 0xffff
mov dword [esp + 0x948], 0
push eax
push ebx
call fcn.00401b60
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x948], 0xffffffff
call fcn.004015d0
jmp case.0x404d4c.2
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xa4]
and ecx, 0xffff
push ecx
push ebx
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
je case.0x404d4c.2
lea ecx, [esp + 0x3c0]
call fcn.00401570
mov eax, dword [esp + 0x16]
lea ecx, [esp + 0x3c0]
and eax, 0xffff
mov dword [esp + 0x948], 1
push eax
push ebx
call fcn.00401a90
lea ecx, [esp + 0x3c0]
mov dword [esp + 0x948], 0xffffffff
call fcn.004015d0
jmp case.0x404d4c.2
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xa4]
and ecx, 0xffff
push ecx
push ebx
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
je case.0x404d4c.2
push 0
push 0
push ebx
push 0x405060
lea eax, [esp + 0x20]
push 0
push 0
mov dword [0x40cad4], eax
call ebp
mov ecx, dword [0x40cad0]
push 0x12c
call dword [ecx + 0x10c]
jmp case.0x404d4c.2
push 0
push 0
push esi
push 0x4051e0
push 0
push 0
call ebp
mov edx, dword [0x40cad0]
push 0x12c
call dword [edx + 0x10c]
jmp case.0x404d4c.2
push 0
push 0
push esi
push 0x405250
push 0
push 0
call ebp
mov eax, dword [0x40cad0]
push 0x12c
call dword [eax + 0x10c]
jmp case.0x404d4c.2
mov ecx, 0x33
xor eax, eax
lea edi, [esp + 0xe8]
lea edx, [esp + 0xec]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xa4]
and ecx, 0xffff
push ecx
push edx
push eax
call fcn.004049c0
add esp, 0xc
test eax, eax
je case.0x404d4c.2
push 0
lea ecx, [esp + 0xec]
push 0
push ecx
push 0x405350
push 0
push 0
mov dword [esp + 0x100], esi
call ebp
mov edx, dword [0x40cad0]
push 0x1f4
call dword [edx + 0x10c]
jmp case.0x404d4c.2
mov edx, dword [esi + 0xa4]
mov ecx, 0x33
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
and eax, 0xffff
push eax
push ecx
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
je case.0x404d4c.2
push 0
lea eax, [esp + 0x20]
push 0
push eax
push 0x4053d0
push 0
push 0
mov dword [esp + 0x34], esi
call ebp
mov ecx, dword [0x40cad0]
push 0x1f4
call dword [ecx + 0x10c]
jmp case.0x404d4c.2
mov edx, dword [esi + 0xa4]
mov eax, dword [0x40cad0]
push 2
push edx
call dword [eax + 0x20c]
lea ecx, [esp + 0x5cc]
call fcn.00401ca0
lea ecx, [esp + 0x5cc]
call fcn.004020a0
mov edx, dword [esi + 0xa4]
lea ecx, [esp + 0x10]
push 0xc
push ecx
push edx
call fcn.004049c0
add esp, 0xc
test eax, eax
jne 0x404d26
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x940]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x93c
ret
mov eax, dword [esi + 0xa4]
mov ecx, dword [0x40cad0]
push 2
push eax
call dword [ecx + 0x20c]
mov edx, dword [esi + 0xa4]
mov eax, dword [0x40cad0]
push edx
call dword [eax + 0x1e8]
xor eax, eax
jmp 0x404fea