Function at 0x405a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x7c]
xor ebp, ebp
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
jne 0x405aaf
call fcn.00406060
test eax, eax
je 0x405d6e
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x20]
add ecx, eax
mov eax, dword [esi + 0x10]
add ecx, edx
add ecx, eax
mov dword [esp + 0x18], ecx
je 0x405ae0
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x14], eax
mov edi, eax
mov eax, dword [esi + 0x50]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x405b02
lea ecx, [eax + eax*2]
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x1c], eax
cmp edi, ebx
je 0x405c21
cmp dword [esi + 0x10], ebx
je 0x405b35
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov edx, dword [esi + 8]
mov ebp, 1
mov eax, dword [edx]
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
cmp dword [esi + 0x20], ebx
je 0x405b67
lea edx, [ebp + ebp*2]
inc ebp
lea eax, [edi + edx*8]
mov dword [eax], ebx
mov dword [eax + 4], 1
mov edx, dword [esi + 0x18]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0x18]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
mov dword [eax + 8], edx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
cmp dword [esi + 0x30], ebx
je 0x405bc4
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
cmp edx, eax
mov dword [esp + 0x10], edx
je 0x405bc4
lea eax, [ebp + ebp*2]
lea edi, [edi + eax*8 + 0xc]
mov dword [edi - 0xc], ebx
mov dword [edi - 8], 2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [edi], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edi - 4], ecx
mov dword [edi + 4], ebx
lea ecx, [esp + 0x10]
mov dword [edi + 8], ebx
call fcn.004069f0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
inc ebp
add edi, 0x18
cmp edx, eax
jne 0x405b81
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x40], ebx
je 0x405c21
mov eax, dword [esi + 0x38]
mov edx, dword [eax]
cmp edx, eax
mov dword [esp + 0x10], edx
je 0x405c21
lea eax, [ebp + ebp*2]
mov ebp, 3
lea edi, [edi + eax*8 + 0xc]
mov dword [edi - 0xc], ebx
mov dword [edi - 8], ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [edi], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edi - 4], ecx
mov dword [edi + 4], ebx
lea ecx, [esp + 0x10]
mov dword [edi + 8], ebx
call fcn.004069f0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x38]
add edi, 0x18
cmp edx, eax
jne 0x405be3
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], ebx
je 0x405cb1
mov eax, dword [esi + 0x48]
mov edx, dword [eax]
cmp edx, eax
mov dword [esp + 0x10], edx
je 0x405cb1
mov eax, dword [esp + 0x1c]
lea edi, [eax + 8]
mov dword [edi - 8], ebx
mov dword [edi - 4], ebx
mov dword [edi], 0xffffffff
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [edi + 4], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov eax, dword [esp + 0x10]
mov edx, dword [0x4e5910]
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x405c7e
push ecx
call fcn.00406d10
add esp, 4
jmp 0x405c9b
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x405c94
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x405c86
cmp dword [eax + 8], ecx
je 0x405c9f
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x48]
add edi, 0x18
cmp eax, ecx
jne 0x405c3f
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], edx
mov edx, eax
neg edx
sbb edx, edx
mov dword [esp + 0x28], ebx
and edx, edi
sub ecx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
je 0x405cf6
lea eax, [eax + eax*2]
lea ecx, [edi + eax*8]
mov dword [esp + 0x4c], ecx
jmp 0x405cfa
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], ebx
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x6c], eax
call dword [esi + 0x70]
mov ecx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x2c]
push 8
push eax
push ebx
push ecx
call dword [esi + 0x74]
mov edx, dword [esp + 0x20]
push ebx
push ebx
push ebx
push edx
mov ebp, eax
call dword [esi + 0x78]
cmp edi, ebx
je 0x405d4c
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp dword [esp + 0x24], ebx
je 0x405d72
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
cmp ebp, ebx
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x48
ret
mov ebp, dword [esp + 0x24]
xor eax, eax
pop edi
cmp ebp, ebx
pop esi
pop ebp
pop ebx
sete al
add esp, 0x48
ret