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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e8
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
call fcn.004c25a0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x4bff33
jmp 0x4bf6ff
mov ebx, dword [esp + 0x48]
lea eax, [esp + 0x1f8]
push 0x80
push eax
push str.classname
push ebx
call fcn.004c25f0
add esp, 0x10
test eax, eax
je 0x4bff1e
mov esi, str.func_bobbing
lea eax, [esp + 0x1f8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bf752
test cl, cl
je 0x4bf74e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bf752
add eax, 2
add esi, 2
test cl, cl
jne 0x4bf72e
xor eax, eax
jmp 0x4bf757
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4bff1e
lea eax, [esp + 0x20]
push eax
push str.height
push ebx
call fcn.004c2730
fld dword [esp + 0x2c]
fcomp dword [0x4e0398]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4bf78b
mov dword [esp + 0x20], 0x42000000
lea ecx, [esp + 0x278]
push 0x80
push ecx
push str.model
push ebx
call fcn.004c25f0
add esp, 0x10
test eax, eax
jne 0x4bf7bf
push str.func_bobbing_without_model_n
push 3
call dword [0x122fa00]
add esp, 8
jmp 0x4bff1e
lea edx, [esp + 0x279]
push edx
call fcn.004cb5db
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0xb0], esi
jg 0x4bf7f1
push str.func_bobbing_with_invalid_model_number_n
push 3
call dword [0x122fa00]
add esp, 8
jmp 0x4bff1e
lea eax, [esp + 0x64]
push 0
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x120]
push ecx
push edx
push esi
call fcn.004c2540
fld dword [esp + 0x78]
fadd dword [esp + 0x9c]
fld dword [esp + 0x7c]
fadd dword [esp + 0xa0]
fstp dword [esp + 0x3c]
fld dword [esp + 0x80]
fadd dword [esp + 0xa4]
fstp dword [esp + 0x40]
fmul qword [0x4e03e8]
fst dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul qword [0x4e03e8]
fst dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul qword [0x4e03e8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x54], ecx
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
fld st(1)
mov dword [esp + 0x4c], eax
mov edx, eax
fstp dword [esp + 0x44]
lea eax, [esp + 0x60]
mov dword [esp + 0x58], edx
fstp dword [esp + 0x48]
push eax
push str.spawnflags
fstp dword [esp + 0x58]
push ebx
call fcn.004c2790
mov eax, dword [esp + 0x6c]
add esp, 0x20
test al, 1
je 0x4bf8a3
xor eax, eax
jmp 0x4bf8ac
and al, 2
neg al
sbb eax, eax
add eax, 2
fld dword [esp + eax*4 + 0x3c]
fsub dword [esp + 0x20]
lea ecx, [esp + eax*4 + 0x3c]
lea eax, [esp + eax*4 + 0x30]
sub esp, 8
mov dword [esp + 0x68], ecx
sub esp, 8
mov dword [esp + 0x6c], eax
fstp dword [ecx]
fld dword [esp + 0x30]
fadd dword [eax]
sub esp, 8
sub esp, 8
sub esp, 8
fstp dword [eax]
fld dword [esp + 0x60]
fstp qword [esp + 0x20]
fld dword [esp + 0x5c]
fstp qword [esp + 0x18]
fld dword [esp + 0x58]
fstp qword [esp + 0x10]
fld dword [esp + 0x6c]
fstp qword [esp + 8]
fld dword [esp + 0x68]
fstp qword [esp]
fld dword [esp + 0x64]
sub esp, 8
fstp qword [esp]
push esi
push str.funcbob_model__d__start___1.1f___1.1f___1.1f_end___1.1f___1.1f___1.1f_n
call fcn.004a1080
fld dword [esp + 0xa4]
fsub dword [esp + 0x64]
add esp, 0x38
lea eax, [esp + 0xbc]
mov ecx, 4
fld st(0)
fadd dword [esp + 0x44]
fadd dword [0x4e084c]
mov edx, dword [esp + 0x3c]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax], edx
fst dword [eax + 4]
add eax, 0xc
dec ecx
jne 0x4bf93f
fstp st(0)
fld dword [esp + 0x64]
fsub dword [esp + 0x24]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x138], 0
mov dword [esp + 0x144], eax
mov dword [esp + 0x13c], 0
fld st(0)
fadd dword [esp + 0xb8]
mov dword [esp + 0x140], 0x3f800000
lea eax, [esp + 0xec]
mov ecx, 4
fstp dword [esp + 0xb8]
fld dword [esp + 0x68]
fsub dword [esp + 0x28]
fst dword [esp + 0x18]
fadd dword [esp + 0xbc]
fstp dword [esp + 0xbc]
fld st(0)
fadd dword [esp + 0xc4]
fstp dword [esp + 0xc4]
fld dword [esp + 0x8c]
fsub dword [esp + 0x28]
fst dword [esp + 0x14]
fadd dword [esp + 0xc8]
fstp dword [esp + 0xc8]
fld dword [esp + 0x88]
fsub dword [esp + 0x24]
fst dword [esp + 0x1c]
fadd dword [esp + 0xd0]
fstp dword [esp + 0xd0]
fld dword [esp + 0x14]
fadd dword [esp + 0xd4]
fstp dword [esp + 0xd4]
fld dword [esp + 0x1c]
fadd dword [esp + 0xdc]
fstp dword [esp + 0xdc]
fld dword [esp + 0x18]
fadd dword [esp + 0xe0]
fstp dword [esp + 0xe0]
fld st(1)
fadd dword [esp + 0x38]
fadd dword [0x4e084c]
mov edx, dword [esp + 0x30]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax], edx
fst dword [eax + 4]
add eax, 0xc
dec ecx
jne 0x4bfa50
fstp st(0)
fld st(0)
fadd dword [esp + 0xe8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x98], edx
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x30]
fstp dword [esp + 0xe8]
fld dword [esp + 0x18]
fadd dword [esp + 0xec]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x94]
mov dword [esp + 0x124], 0
push edx
mov dword [esp + 0x12c], 0
fstp dword [esp + 0xf0]
mov dword [esp + 0x130], 0x3f800000
mov dword [esp + 0xa8], eax
fadd dword [esp + 0xf8]
mov dword [esp + 0xac], ecx
fstp dword [esp + 0xf8]
fld dword [esp + 0x18]
fadd dword [esp + 0xfc]
fstp dword [esp + 0xfc]
fld dword [esp + 0x20]
fadd dword [esp + 0x104]
fstp dword [esp + 0x104]
fld dword [esp + 0x18]
fadd dword [esp + 0x108]
fstp dword [esp + 0x108]
fld dword [esp + 0x20]
fadd dword [esp + 0x110]
fstp dword [esp + 0x110]
fld dword [esp + 0x1c]
fadd dword [esp + 0x114]
fstp dword [esp + 0x114]
fld dword [esp + 0x48]
fadd st(1)
fadd dword [0x4e084c]
fstp dword [esp + 0xa0]
fld dword [esp + 0x3c]
fadd st(1)
fadd dword [0x4e084c]
fstp dword [esp + 0xb0]
fstp st(0)
call fcn.004c3040
add esp, 4
test eax, eax
je 0x4bff1e
lea eax, [esp + 0xa4]
push eax
call fcn.004c3040
add esp, 4
test eax, eax
je 0x4bff1e
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push 1
test eax, eax
jne 0x4bfbf8
lea ecx, [esp + 0x13c]
lea edx, [esp + 0xbc]
push ecx
push 4
push edx
call fcn.004bf260
mov esi, eax
lea eax, [esp + 0x134]
push 0
push eax
lea ecx, [esp + 0x100]
push 4
push ecx
mov dword [esp + 0x38], esi
call fcn.004bf260
mov ebp, eax
add esp, 0x20
mov dword [esp + 0x1c], ebp
jmp 0x4bfc39
lea edx, [esp + 0x128]
lea eax, [esp + 0xec]
push edx
push 4
push eax
call fcn.004bf260
lea ecx, [esp + 0x148]
push 0
push ecx
lea edx, [esp + 0xd0]
push 4
push edx
mov dword [esp + 0x38], eax
call fcn.004bf260
mov esi, dword [esp + 0x38]
add esp, 0x20
mov dword [esp + 0x1c], eax
mov ebp, eax
test esi, esi
mov edi, esi
je 0x4bfed5
mov eax, dword [edi + 0x2c]
test ebp, ebp
mov dword [esp + 0xb4], eax
je 0x4bfecb
lea ebx, [edi + 0xc]
mov eax, dword [ebp]
mov ecx, dword [edi]
mov esi, dword [ebp + 0x2c]
push eax
push ecx
push str.funcbob_reach_from_area__d_to__d_n
mov dword [esp + 0xac], esi
call fcn.004a1080
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x4bfc95
mov edx, dword [esp + 0x98]
fld dword [esp + 0x94]
mov dword [esp + 0x150], edx
jmp 0x4bfcaa
mov eax, dword [esp + 0xa8]
fld dword [esp + 0xa4]
mov dword [esp + 0x150], eax
fld dword [ebx]
fsub st(1)
lea ecx, [esp + 0x50]
push ecx
fstp dword [esp + 0x54]
fstp st(0)
fld dword [edi + 0x10]
fsub dword [esp + 0x154]
mov dword [esp + 0x5c], 0
fstp dword [esp + 0x58]
call fcn.0042bd60
mov edx, dword [ebx]
push 0xa
mov dword [esp + 0x84], edx
mov eax, dword [edi + 0x10]
fstp st(0)
fld dword [esp + 0x58]
mov dword [esp + 0x88], eax
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x8c], ecx
lea edx, [esp + 0x160]
fadd dword [ebx]
lea eax, [esp + 0x1d8]
push edx
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0x8c]
push ecx
fstp dword [esp + 0x90]
fld dword [esp + 0x68]
fadd dword [edi + 0x10]
push edx
fstp dword [esp + 0x98]
fld dword [esp + 0x70]
fadd dword [edi + 0x14]
fadd dword [0x4e03d0]
fstp dword [esp + 0x9c]
fld dword [esp + 0x68]
fmul dword [0x4e03b8]
fadd dword [ebx]
fstp dword [esp + 0x88]
fld dword [esp + 0x6c]
fmul dword [0x4e03b8]
fadd dword [edi + 0x10]
fstp dword [esp + 0x8c]
fld dword [esp + 0x70]
fmul dword [0x4e03b8]
fadd dword [edi + 0x14]
fadd dword [0x4e03d0]
fstp dword [esp + 0x90]
call fcn.004c3910
add esp, 0x18
test eax, eax
jle 0x4bfeae
cmp eax, 1
jle 0x4bfdb3
mov eax, dword [esp + 0x164]
mov dword [ebx], eax
mov ecx, dword [esp + 0x168]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0x16c]
jmp 0x4bfdc4
mov eax, dword [esp + 0x70]
mov dword [ebx], eax
mov ecx, dword [esp + 0x74]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0x78]
push ebx
mov dword [edi + 0x14], edx
call fcn.004c3040
add esp, 4
test eax, eax
je 0x4bfeae
lea eax, [ebp + 0x18]
push eax
call fcn.004c3040
add esp, 4
test eax, eax
je 0x4bfeae
call fcn.004b9c00
mov esi, eax
mov eax, dword [ebp]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4bfe18
mov ecx, dword [esp + 0x60]
fld dword [ecx]
call fcn.004cb970
mov edx, dword [esp + 0x5c]
mov ebx, eax
shl ebx, 0x10
fld dword [edx]
jmp 0x4bfe2e
mov eax, dword [esp + 0x5c]
fld dword [eax]
call fcn.004cb970
mov ecx, dword [esp + 0x60]
mov ebx, eax
shl ebx, 0x10
fld dword [ecx]
call fcn.004cb970
mov ecx, dword [esp + 0xb0]
and eax, 0xffff
or ebx, eax
mov dword [esi + 8], ebx
mov edx, dword [esp + 0x4c]
shl edx, 0x10
or edx, ecx
lea ebx, [edi + 0xc]
mov dword [esi + 4], edx
mov eax, dword [ebx]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], 0x13
mov word [esi + 0x28], 0x12c
mov eax, dword [0x1228464]
mov ecx, dword [0x1228434]
inc eax
mov dword [0x1228464], eax
mov eax, dword [edi]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0x2c], edx
mov eax, dword [edi]
mov ecx, dword [0x1228434]
mov dword [ecx + eax*4], esi
mov esi, dword [esp + 0xa0]
test esi, esi
mov ebp, esi
jne 0x4bfc58
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x48]
test eax, eax
mov edi, eax
jne 0x4bfc43
test esi, esi
mov eax, esi
je 0x4bfeed
mov edi, dword [eax + 0x2c]
push eax
call fcn.004b9c40
add esp, 4
mov eax, edi
test edi, edi
jne 0x4bfedb
test ebp, ebp
mov eax, ebp
je 0x4bff05
mov edi, dword [eax + 0x2c]
push eax
call fcn.004b9c40
add esp, 4
mov eax, edi
test edi, edi
jne 0x4bfef3
test byte [esp + 0x4c], 3
je 0x4bff1e
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x4bfbad
push ebx
call fcn.004c25a0
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
jne 0x4bf6fb
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret