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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x51c5db
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
test ebp, ebp
push esi
push edi
mov esi, ecx
jne 0x43a7e3
push str.CMMScriptManager::AddObject_invalid_number_of_objects
call fcn.00449670
add esp, 4
mov ecx, dword [esi + 0x1cd8]
test ecx, ecx
mov edi, dword [esp + 0x70]
mov eax, edi
lea ebx, [esi + 0xfb8]
jl 0x43ac2e
cmp ecx, 0x1e
jge 0x43ac2e
imul ecx, ecx, 0x70
lea edx, [ecx + ebx]
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43a810
mov eax, dword [esi + 0x1cd8]
test eax, eax
jl 0x43ac08
cmp eax, 0x1e
jge 0x43ac08
imul eax, eax, 0x70
add eax, ebx
mov dword [eax + 0x6c], ebp
mov eax, dword [esi + 0x1cd8]
test eax, eax
lea ecx, [eax + 1]
mov dword [esi + 0x1cd8], ecx
jl 0x43abe2
cmp eax, 0x1e
jge 0x43abe2
imul eax, eax, 0x70
add eax, ebx
push edi
mov ecx, 0x677ce0
mov dword [eax + 0x50], 3
call fcn.00404620
cmp eax, 0xffffffff
je 0x43a8f9
test eax, eax
jl 0x43a8d3
cmp eax, dword [0x677d00]
jge 0x43a8d3
mov ecx, dword [0x677d04]
mov edx, eax
imul edx, edx, 0x1c4
mov esi, dword [edx + ecx + 0x48]
test esi, esi
jne 0x43a8b7
mov edx, dword [0x5b7b38]
mov dword [edx + 0x3cc], eax
mov ecx, dword [0x677df8]
call fcn.004f8c40
jmp 0x43a9ae
mov ecx, dword [0x5b7b38]
mov dword [ecx + 0x3ec], eax
mov ecx, dword [0x677df8]
call fcn.004f8c40
jmp 0x43a9ae
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x14]
push eax
call fcn.00514dd6
push edi
mov ecx, 0x676c18
call fcn.00404620
cmp eax, 0xffffffff
je 0x43a94b
mov ecx, dword [0x5b7b38]
mov dword [ecx + 0x3ac], eax
mov ecx, dword [0x5b7b38]
mov edx, dword [ecx + 0x128]
lea eax, [ecx + 0x128]
lea esi, [ecx + 0x3ac]
sub esp, 0x20
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [0x677df8]
call fcn.004f8c40
jmp 0x43a9ae
push edi
mov ecx, 0x677d38
call fcn.00404620
mov esi, eax
cmp esi, 0xffffffff
je 0x43aad2
push esi
mov ecx, 0x677d58
call fcn.004042c0
cmp dword [eax], 3
jne 0x43a9c3
mov eax, dword [0x5b7b38]
mov edx, dword [eax + 0xf0]
sub esp, 0x20
mov dword [esp + 0x3c], esi
add eax, 0xf0
mov edi, esp
mov ecx, 8
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call dword [edx + 4]
mov eax, dword [0x5b7b38]
mov ecx, dword [eax + 0x124]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x160], edx
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 8
push esi
mov ecx, 0x677d58
call fcn.004042c0
cmp dword [eax], 4
push esi
jne 0x43aa05
lea eax, [esp + 0x20]
push eax
call fcn.00401e80
mov edx, dword [0x5b7b38]
mov ebx, dword [edx + 0x80]
sub esp, 0x18
add edx, 0x80
mov esi, eax
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [ebx + 4]
jmp 0x43a9ae
mov ecx, 0x677d58
call fcn.004042c0
cmp dword [eax], 2
jne 0x43aa5d
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00401e80
mov edx, dword [0x5b7b38]
mov ebx, dword [edx + 0xb8]
sub esp, 0x18
add edx, 0xb8
mov esi, eax
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [ebx + 4]
mov eax, dword [0x5b7b38]
mov edx, dword [eax + 0xec]
mov ecx, dword [edx + 0x30]
mov dword [eax + 0x15c], ecx
jmp 0x43a9ae
push 0x38
call fcn.00514cc5
mov ebx, eax
add esp, 4
mov dword [esp + 0x74], ebx
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x68], eax
je 0x43aa97
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.00401e40
sub esp, 0x18
mov esi, eax
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00413300
mov edx, dword [eax + 4]
or ecx, 0xffffffff
cmp edx, ecx
mov dword [esp + 0x68], ecx
je 0x43aac5
mov edx, dword [0x5b7b38]
mov esi, dword [edx + 0x1b8]
lea ecx, [edx + 0x1b8]
mov dword [edx + esi*4 + 0x168], eax
inc dword [ecx]
jmp 0x43ab72
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
jmp 0x43ab72
push edi
mov ecx, 0x676c78
call fcn.00404620
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43ab8d
mov ecx, dword [0x5b7b38]
mov eax, dword [ecx + 0x324]
xor esi, esi
test eax, eax
jle 0x43ab3f
lea ebx, [ebx]
push esi
add ecx, 0x1bc
call fcn.004040a0
cmp dword [eax], ebx
mov ecx, dword [0x5b7b38]
je 0x43ab23
mov eax, dword [ecx + 0x324]
inc esi
cmp esi, eax
jl 0x43ab00
jmp 0x43ab3f
push esi
add ecx, 0x1bc
call fcn.004040a0
mov ecx, dword [eax + 0x20]
add eax, 0x20
add ecx, ebp
mov dword [eax], ecx
mov ecx, dword [0x5b7b38]
cmp esi, dword [ecx + 0x324]
jne 0x43ab78
mov edx, dword [ecx + 0x324]
lea eax, [ecx + 0x324]
lea edx, [edx + edx*8]
lea edi, [ecx + edx*4 + 0x1bc]
mov ecx, 9
lea esi, [esp + 0x3c]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x3c], ebx
rep movsd dword es:[edi], dword [esi]
inc dword [eax]
mov ecx, dword [0x5b7b38]
call fcn.004ae820
mov ecx, dword [0x677df8]
call fcn.004f8c40
jmp 0x43a9ae
push edi
mov ecx, 0x676f18
call fcn.00404620
cmp eax, 0xffffffff
push edi
je 0x43abd1
lea eax, [esp + 0x20]
push eax
call fcn.00401e40
add esp, 8
push 0
push 0
push ebp
sub esp, 0x20
mov esi, eax
mov edi, esp
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x5b7b38]
add ecx, 0x34
call fcn.00409740
jmp 0x43a9ae
lea ecx, [esp + 0x40]
push ecx
call fcn.00401e40
add esp, 8
push 2
jmp 0x43abad
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [esp + 0x14]
push eax
call fcn.00514dd6
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [esp + 0x14]
push edx
call fcn.00514dd6
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0x52145c
call dword [0x521298]
push 0x52fdac
lea ecx, [esp + 0x14]
push ecx
call fcn.00514dd6
int3