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

Disassembly:
push 0xffffffffffffffff
push 0x6204eb
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.00411c30
lea esi, [ebp + 0xf0]
mov dword [esp + 0x190], ebx
mov ecx, esi
call fcn.0040a970
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], 0x63555c
call fcn.004c5a20
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call fcn.004c5a20
mov edx, dword [esp + 0x28]
lea eax, [ebp + 0x1a8]
push edx
push eax
push esi
call fcn.004c5a20
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x34]
push 4
push edx
push esi
mov byte [ecx + ebp + 0x1a8], bl
call fcn.004c5a20
mov eax, dword [esp + 0x40]
lea ecx, [ebp + 0x2a9]
push eax
push ecx
push esi
call fcn.004c5a20
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 4
push eax
push esi
mov byte [edx + ebp + 0x2a9], bl
call fcn.004c5a20
mov ecx, dword [esp + 0x58]
add esp, 0x48
lea edx, [ebp + 0x3aa]
push ecx
push edx
push esi
call fcn.004c5a20
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
mov byte [eax + ebp + 0x3aa], bl
call fcn.004c5a20
mov edx, dword [esp + 0x28]
lea eax, [ebp + 0x4ab]
push edx
push eax
push esi
call fcn.004c5a20
mov ecx, dword [esp + 0x34]
lea eax, [ebp + 0x5ac]
push 4
push eax
push esi
mov byte [ecx + ebp + 0x4ab], bl
call fcn.004c5a20
fld dword [0x680264]
fcomp qword [0x6355b0]
add esp, 0x30
fnstsw ax
test ah, 0x41
jne 0x40af59
lea edx, [esp + 0x14]
push 4
push edx
push esi
call fcn.004c5a20
add esp, 0xc
jmp 0x40af5f
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jle 0x40b268
lea ecx, [esp + 0x10]
push 4
push ecx
push esi
call fcn.004c5a20
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x90]
push edx
push eax
push esi
call fcn.004c5a20
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x68]
push 4
push edx
push esi
mov byte [esp + ecx + 0xa8], bl
call fcn.004c5a20
lea eax, [esp + 0x60]
push 4
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x58]
push 4
push ecx
push esi
call fcn.004c5a20
lea edx, [esp + 0x80]
push 4
push edx
push esi
call fcn.004c5a20
add esp, 0x48
lea eax, [esp + 0x4c]
push 4
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x60]
push 4
push ecx
push esi
call fcn.004c5a20
lea edx, [esp + 0x90]
push 4
push edx
push esi
call fcn.004c5a20
lea eax, [esp + 0x64]
push 4
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x90]
push 4
push ecx
push esi
call fcn.004c5a20
lea edx, [esp + 0x70]
push 4
push edx
push esi
call fcn.004c5a20
add esp, 0x48
lea eax, [esp + 0x74]
push 4
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x64]
push 4
push ecx
push esi
call fcn.004c5a20
lea edx, [esp + 0x30]
push 4
push edx
push esi
call fcn.004c5a20
push 4
lea eax, [esp + 0x54]
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x78]
push 4
push ecx
push esi
call fcn.004c5a20
lea edx, [esp + 0x74]
push 4
push edx
push esi
call fcn.004c5a20
add esp, 0x48
lea eax, [esp + 0x70]
push 4
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x3c]
push 4
push ecx
push esi
call fcn.004c5a20
lea edx, [esp + 0x80]
push 4
push edx
push esi
call fcn.004c5a20
lea eax, [esp + 0x80]
push 4
push eax
push esi
call fcn.004c5a20
lea ecx, [esp + 0x50]
push 4
push ecx
push esi
mov dword [esp + 0x5c], 0xffffffff
call fcn.004c5a20
lea edx, [esp + 0xa0]
push 4
push edx
push esi
call fcn.004c5a20
add esp, 0x48
lea eax, [esp + 0x6c]
push 1
push eax
push esi
call fcn.004c5a20
fld dword [0x680264]
fcomp qword [str._np]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x40b113
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call fcn.004c5a20
add esp, 0xc
jmp 0x40b117
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x18], ebx
jne 0x40b253
push 0xb4
call fcn.0061317d
add esp, 4
mov dword [esp + 0x80], eax
cmp eax, ebx
mov byte [esp + 0x190], 3
je 0x40b194
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.0040aa00
mov edi, eax
jmp 0x40b196
xor edi, edi
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
mov byte [esp + 0x194], 2
call fcn.0040ab90
mov eax, dword [esp + 0x58]
mov ecx, edi
push eax
call fcn.0040ab80
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.0040aba0
mov edx, dword [esp + 0x34]
mov ecx, edi
push edx
call fcn.0040a960
mov eax, dword [esp + 0x3c]
mov ecx, edi
push eax
call fcn.005d68b0
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, edi
call fcn.0040a930
mov edx, dword [esp + 0x4c]
mov ecx, edi
push edx
call fcn.0040a940
mov eax, dword [esp + 0x54]
mov ecx, edi
push eax
call fcn.0040a950
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, edi
call fcn.0040ac00
mov edx, dword [esp + 0x20]
mov ecx, edi
push edx
call fcn.0040ac20
mov eax, dword [esp + 0x64]
mov ecx, edi
push eax
call fcn.0040ac40
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, edi
call fcn.0040ac60
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 0x40af6f
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