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

Disassembly:
sub esp, 0x2d4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2e8]
push edi
push 0
push esi
mov byte [0x555220], 0
call fcn.004015f0
mov ebp, dword [esp + 0x2fc]
mov edi, eax
push 0
push ebp
mov dword [esp + 0x40], edi
call fcn.004015f0
mov edx, dword [esp + 0x2f8]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
add esp, 0x10
lea edx, [edx + edx*4]
xor ecx, ecx
shl edx, 2
mov ebx, dword [eax + edx + 0xc]
lea edi, [eax + edx]
test ebx, ebx
jle 0x42b23c
mov eax, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
movsx eax, byte [eax + 2]
cmp eax, dword [esp + 0x2f0]
jne 0x42b22c
mov eax, dword [esp + 0x1c]
movsx eax, word [eax]
cmp eax, ebp
je 0x42b23c
mov eax, dword [esp + 0x1c]
inc ecx
add eax, 0xc
cmp ecx, ebx
mov dword [esp + 0x1c], eax
jl 0x42b210
mov ecx, dword [esp + 0x2f0]
mov ebx, dword [esp + 0x2c]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov eax, ecx
add eax, dword [ebx + 4]
cmp esi, ebp
mov ebx, dword [eax]
mov dword [esp + 0x10], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
fld dword [esp + 0x20]
fadd dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x84], esi
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fmul dword [0x51d830]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul dword [0x51d830]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [0x51d830]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
je 0x42b395
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
add eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
add ecx, dword [edx + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x54bfa0]
cmp esi, ecx
jle 0x42b33f
add ecx, 8
cmp esi, ecx
jg 0x42b33f
push eax
call fcn.004ae790
add esp, 4
mov dword [esp + 0x48], eax
jmp 0x42b343
mov dword [esp + 0x48], esi
lea eax, [esp + 0x78]
push 0
lea ecx, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0x2000000
mov word [esp + 0x5c], 0xffff
mov dword [esp + 0x60], 0
call fcn.004e8100
add esp, 0xc
test eax, eax
je 0x42b395
push str.You_can_only_do_this_function_if_the_2_nodes_can_nsee_each_other_or_are_in_the_same_room._n
call fcn.004cd2a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d4
ret
mov eax, dword [esp + 0x84]
push 0
lea edx, [esp + 0x38]
push 0
push edx
push eax
call fcn.0042b0a0
mov ebx, dword [esp + 0x2f8]
mov ecx, dword [esp + 0x94]
push 0xbf800000
push 1
push esi
mov edi, eax
push ebx
push ecx
push edi
call fcn.0042b660
mov edx, dword [esp + 0x318]
mov eax, dword [esp + 0xac]
push 0xbf800000
push 1
push ebp
push edx
push eax
push edi
call fcn.0042b660
mov ecx, dword [esp + 0x330]
add esp, 0x40
push 1
push esi
push ebx
push ebp
push ecx
call fcn.0042af20
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d4
ret