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

Disassembly:
sub esp, 0x2a8
push ebx
push ebp
push esi
push edi
push str.NETWORK_HL:_CSR_NetAIManager::Configure_____n
call fcn.00408d10
add esp, 4
push 0x1b0
xor edi, edi
lea eax, [esp + 0x10c]
push edi
push eax
call fcn.004ae0b0
add esp, 0xc
lea esi, [esp + 0xc0]
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], 4
call fcn.005b9010
lea esi, [esp + 0x78]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], 7
call fcn.005b9010
test byte [0xb314e0], 1
jne 0x5b94bb
or dword [0xb314e0], 1
push 0x681e30
mov dword [0xb044b8], edi
call fcn.004a9213
add esp, 4
test byte [0xb314e4], 1
jne 0x5b94dd
or dword [0xb314e4], 1
call fcn.0053ed20
push 0x681e20
call fcn.004a9213
add esp, 4
mov eax, dword [0xb2fb88]
cmp eax, edi
je 0x5b94eb
add eax, 0x28
jmp 0x5b94ed
xor eax, eax
mov edx, dword [eax + 4]
mov eax, dword [0xb044b8]
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x30], edx
mov edx, eax
shl edx, 4
sub edx, eax
mov dword [esp + 0x34], ecx
lea eax, [edx*8 + 0xb03d38]
xor ebx, ebx
xor ecx, ecx
cmp eax, 0xb03d38
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
je 0x5b9541
mov edx, 0xb03d58
mov edi, edi
mov esi, dword [edx]
cmp esi, ecx
cmova ecx, esi
add edx, 0x78
lea esi, [edx - 0x20]
cmp esi, eax
jne 0x5b9530
add ecx, 1
test byte [0xb314e4], 1
mov dword [esp + 0x20], ecx
jne 0x5b956a
or dword [0xb314e4], 1
call fcn.0053ed20
push 0x681e20
call fcn.004a9213
add esp, 4
mov eax, dword [0xb2f468]
neg eax
sbb eax, eax
and eax, 0xb2f448
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
push str.NETWORK_HL:__AI_Grid_Begin__n
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
call fcn.00408d10
mov eax, 0x955030
add esp, 4
lea esi, [esp + 0x130]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 6
jmp 0x5b95b0
lea ecx, [eax - 0x928]
test ecx, ecx
je 0x5b9630
test byte [eax + 0x598], 1
je 0x5b9630
mov ebp, dword [eax + 4]
mov edi, dword [eax]
push ebp
push edi
mov eax, 0xb03d38
call fcn.0053c0e0
test eax, eax
jne 0x5b962a
mov edx, dword [esp + 0x10]
push 0x12
add edx, 0xfffffe88
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi], edi
mov edi, dword [esp + 0x24]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x20]
push edx
lea eax, [esi - 0x28]
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], 5
mov dword [esi + 0x14], ebp
call fcn.004a9696
add dword [esp + 0x38], 1
add edi, 1
add ebp, 1
add esp, 0xc
add ebx, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
add esi, 0x48
mov eax, dword [esp + 0x10]
xor edi, edi
add eax, 0xec8
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jne 0x5b95b0
mov ebp, dword [esp + 0x2bc]
cmp dword [ebp + 0x1b4], edi
je 0x5b9665
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jmp 0x5b9669
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [esp + 0x34], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
jbe 0x5b9918
mov edi, dword [esp + eax*4 + 0xc0]
test edi, edi
mov dword [esp + 0x3c], edi
je 0x5b9905
mov edx, dword [edi + 0x18]
cmp edx, dword [esp + 0x40]
jne 0x5b96ae
mov eax, dword [edi + 0x1c]
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x18], 1
je 0x5b96b6
mov dword [esp + 0x18], 0
lea esi, [ebx + ebx*8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, edx
mov dword [esp + esi + 0x138], ecx
mov edx, dword [edi + 0x1c]
mov dword [esp + esi + 0x13c], edx
mov eax, dword [edi + 0x18]
mov dword [esp + esi + 0x130], eax
mov ecx, dword [edi + 0x1c]
xor eax, eax
cmp dword [esp + 0x18], eax
mov dword [esp + esi + 0x134], ecx
mov edx, dword [edi + 0x20]
mov ecx, dword [esp + 0xb8]
sete al
mov dword [esp + esi + 0x140], edx
lea eax, [eax + eax + 3]
mov dword [esp + esi + 0x148], eax
xor eax, eax
test ecx, ecx
jbe 0x5b971e
cmp dword [esp + eax*4 + 0x78], edi
je 0x5b9721
add eax, 1
cmp eax, ecx
jb 0x5b9711
or eax, 0xffffffff
mov ecx, dword [esp + 0x10]
add eax, ecx
add eax, dword [esp + 0x2c]
lea ebp, [edi + 4]
mov dword [esp + esi + 0x144], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x14], eax
mov eax, ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x5b9764
push 0xffffffffffffffff
sub eax, ecx
push ebp
add eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004ac3f7
add esp, 0x14
push 0x12
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + esi + 0x110]
push edx
call fcn.004a9696
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
add ebx, 1
call fcn.005b93b0
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x28], ecx
jb 0x5b97bc
mov dword [esp + 0x28], eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
jbe 0x5b98f2
xor ecx, ecx
cmp dword [esp + 0x18], ecx
lea ebp, [ebx + ebx*8]
sete cl
lea ebp, [esp + ebp*8 + 0x130]
lea ecx, [ecx + ecx + 4]
mov dword [esp + 0x18], ecx
jmp 0x5b97f4
mov edi, dword [esp + 0x3c]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
add dword [esp + 0x38], 1
mov esi, dword [esp + 0x14]
xor edi, edi
add esi, eax
adc edi, ecx
add esi, 1
adc edi, 0
push edi
push esi
mov edx, ebx
lea eax, [esp + 0x110]
mov dword [esp + 0x7c], ecx
call fcn.005b6110
add esp, 8
test eax, eax
jne 0x5b984d
lea ebx, [ebx]
add esi, 1
adc edi, 0
push edi
push esi
mov edx, ebx
lea eax, [esp + 0x110]
call fcn.005b6110
add esp, 8
test eax, eax
je 0x5b9830
test byte [0xb313ec], 1
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp], esi
mov dword [ebp + 4], edi
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], eax
mov esi, 1
jne 0x5b989f
or dword [0xb313ec], esi
call fcn.005bf670
push 0x6815e0
call fcn.004a9213
add esp, 4
mov edx, dword [0xb2f06c]
mov eax, dword [edx + 0x10]
push str.LANG_ID_AI_DRIVER_X
mov ecx, 0xb2f06c
call eax
test eax, eax
jne 0x5b98bd
mov eax, str.LANG_ID_AI_DRIVER__d
mov ecx, dword [esp + 0x38]
push ecx
push eax
lea edx, [ebp - 0x28]
push 0x12
push edx
call fcn.004a9225
mov eax, dword [esp + 0x24]
add dword [esp + 0x30], esi
add dword [esp + 0x2c], esi
add eax, esi
add esp, 0x10
add ebx, esi
add ebp, 0x48
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
jb 0x5b97f0
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2bc]
add eax, 1
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
jb 0x5b9681
xor edi, edi
mov ecx, dword [esp + 0x24]
push ecx
push str.NETWORK_HL:__AI_Grid_End____d_Players_left_to_create__n
call fcn.00408d10
add esp, 8
cmp ebx, edi
mov dword [ebp + 0x1b0], edi
jbe 0x5b996b
lea edx, [esp + 0x108]
jmp 0x5b9940
mov eax, dword [ebp + 0x1b0]
lea ecx, [eax + 1]
lea eax, [eax + eax*8]
lea edi, [ebp + eax*8]
test edi, edi
mov dword [ebp + 0x1b0], ecx
je 0x5b9963
mov ecx, 0x12
mov esi, edx
rep movsd dword es:[edi], dword [esi]
add edx, 0x48
sub ebx, 1
jne 0x5b9940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a8
ret 4