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

Disassembly:
push 0xffffffffffffffff
push 0x607c6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
mov eax, dword [esp + 0x188]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push eax
mov ebp, ecx
push 0x3e9
push str.Build_AI
mov dword [esp + 0x8c], ebp
call fcn.00411430
lea esi, [ebp + 0xf0]
mov dword [esp + 0x190], ebx
mov ecx, esi
call fcn.0040a170
lea edi, [ebp + 0x1a4]
mov dword [ebp + 0x5ac], ebx
mov dword [edi], ebx
mov dword [ebp + 0x5b0], ebx
mov dword [ebp + 0x5b4], ebx
mov dword [ebp + 0x5b8], ebx
mov dword [ebp + 0x5bc], ebx
mov dword [ebp + 0x15c], esi
mov dword [ebp + 0x160], esi
mov esi, dword [esp + 0x19c]
push 4
push edi
push esi
mov byte [esp + 0x19c], 2
mov dword [ebp], 0x61c330
call fcn.004bee50
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call fcn.004bee50
mov edx, dword [esp + 0x28]
lea eax, [ebp + 0x1a8]
push edx
push eax
push esi
call fcn.004bee50
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x34]
push 4
push edx
push esi
mov byte [ecx + ebp + 0x1a8], bl
call fcn.004bee50
mov eax, dword [esp + 0x40]
lea ecx, [ebp + 0x2a9]
push eax
push ecx
push esi
call fcn.004bee50
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 4
push eax
push esi
mov byte [edx + ebp + 0x2a9], bl
call fcn.004bee50
mov ecx, dword [esp + 0x58]
add esp, 0x48
lea edx, [ebp + 0x3aa]
push ecx
push edx
push esi
call fcn.004bee50
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
mov byte [eax + ebp + 0x3aa], bl
call fcn.004bee50
mov edx, dword [esp + 0x28]
lea eax, [ebp + 0x4ab]
push edx
push eax
push esi
call fcn.004bee50
mov ecx, dword [esp + 0x34]
lea eax, [ebp + 0x5ac]
push 4
push eax
push esi
mov byte [ecx + ebp + 0x4ab], bl
call fcn.004bee50
fld dword [0x660284]
fcomp qword [0x61c380]
add esp, 0x30
fnstsw ax
test ah, 0x41
jne 0x40a759
lea edx, [esp + 0x14]
push 4
push edx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x40a75f
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jle 0x40aa68
lea ecx, [esp + 0x10]
push 4
push ecx
push esi
call fcn.004bee50
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x90]
push edx
push eax
push esi
call fcn.004bee50
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x68]
push 4
push edx
push esi
mov byte [esp + ecx + 0xa8], bl
call fcn.004bee50
lea eax, [esp + 0x60]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x58]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x80]
push 4
push edx
push esi
call fcn.004bee50
add esp, 0x48
lea eax, [esp + 0x4c]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x60]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x90]
push 4
push edx
push esi
call fcn.004bee50
lea eax, [esp + 0x64]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x90]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x70]
push 4
push edx
push esi
call fcn.004bee50
add esp, 0x48
lea eax, [esp + 0x74]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x64]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x30]
push 4
push edx
push esi
call fcn.004bee50
push 4
lea eax, [esp + 0x54]
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x78]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x74]
push 4
push edx
push esi
call fcn.004bee50
add esp, 0x48
lea eax, [esp + 0x70]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x3c]
push 4
push ecx
push esi
call fcn.004bee50
lea edx, [esp + 0x80]
push 4
push edx
push esi
call fcn.004bee50
lea eax, [esp + 0x80]
push 4
push eax
push esi
call fcn.004bee50
lea ecx, [esp + 0x50]
push 4
push ecx
push esi
mov dword [esp + 0x5c], 0xffffffff
call fcn.004bee50
lea edx, [esp + 0xa0]
push 4
push edx
push esi
call fcn.004bee50
add esp, 0x48
lea eax, [esp + 0x6c]
push 1
push eax
push esi
call fcn.004bee50
fld dword [0x660284]
fcomp qword [str._np]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x40a913
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call fcn.004bee50
add esp, 0xc
jmp 0x40a917
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x18], ebx
jne 0x40aa53
push 0xb4
call fcn.005faa3d
add esp, 4
mov dword [esp + 0x80], eax
cmp eax, ebx
mov byte [esp + 0x190], 3
je 0x40a994
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x8c]
push ecx
push edx
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x74]
push ebx
push 1
push ecx
mov ecx, dword [esp + 0xa4]
push edx
push ecx
mov ecx, eax
call fcn.0040a200
mov edi, eax
jmp 0x40a996
xor edi, edi
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
mov byte [esp + 0x194], 2
call fcn.0040a390
mov eax, dword [esp + 0x58]
mov ecx, edi
push eax
call fcn.0040a380
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0040a3a0
mov edx, dword [esp + 0x34]
mov ecx, edi
push edx
call fcn.0040a160
mov eax, dword [esp + 0x3c]
mov ecx, edi
push eax
call fcn.005c0e30
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0040a130
mov edx, dword [esp + 0x4c]
mov ecx, edi
push edx
call fcn.0040a140
mov eax, dword [esp + 0x54]
mov ecx, edi
push eax
call fcn.0040a150
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, edi
call fcn.0040a400
mov edx, dword [esp + 0x20]
mov ecx, edi
push edx
call fcn.0040a420
mov eax, dword [esp + 0x64]
mov ecx, edi
push eax
call fcn.0040a440
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.0040a460
mov edx, dword [esp + 0x1c]
lea eax, [ebp + 0xf0]
mov dword [edi + 0xb0], edx
mov dword [edi + 0x6c], eax
mov eax, dword [ebp + 0x160]
mov dword [edi + 0x70], eax
mov dword [eax + 0x6c], edi
mov dword [ebp + 0x160], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40a76f
mov ecx, dword [esp + 0x188]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret 8