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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f0
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
call fcn.004a8b10
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x4a69cc
jmp 0x4a60df
mov ebx, dword [esp + 0x1c]
push 0x80
lea eax, [esp + 0x204]
push eax
push str.classname
push ebx
call fcn.004a8b60
add esp, 0x10
test eax, eax
je 0x4a69b7
mov esi, str.func_bobbing
lea eax, [esp + 0x200]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4a6132
test cl, cl
je 0x4a612e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4a6132
add eax, 2
add esi, 2
test cl, cl
jne 0x4a610e
xor eax, eax
jmp 0x4a6137
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a69b7
lea eax, [esp + 0x20]
push eax
push str.height
push ebx
call fcn.004a8ca0
fld dword [esp + 0x2c]
fcomp dword [0x4bc2d8]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4a616b
mov dword [esp + 0x20], 0x42000000
push 0x80
lea ecx, [esp + 0x284]
push ecx
push str.model
push ebx
call fcn.004a8b60
add esp, 0x10
test eax, eax
jne 0x4a619f
push str.func_bobbing_without_model_n
push 3
call dword [0xc6aa00]
add esp, 8
jmp 0x4a69b7
lea edx, [esp + 0x281]
push edx
call fcn.004aebeb
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0xbc], esi
jg 0x4a61d1
push str.func_bobbing_with_invalid_model_number_n
push 3
call dword [0xc6aa00]
add esp, 8
jmp 0x4a69b7
lea eax, [esp + 0x54]
push eax
push str.origin
push ebx
call fcn.004a8bf0
add esp, 0xc
test eax, eax
jne 0x4a61f4
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x12c]
push eax
push esi
call fcn.004a8ae0
fld dword [esp + 0x78]
fadd dword [esp + 0x68]
fstp dword [esp + 0x78]
fld dword [esp + 0x7c]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x80]
fadd dword [esp + 0x70]
fstp dword [esp + 0x80]
fld dword [esp + 0x50]
fadd dword [esp + 0x68]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fadd dword [esp + 0x70]
fstp dword [esp + 0x58]
fld dword [esp + 0x50]
fadd dword [esp + 0x78]
fld dword [esp + 0x54]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x58]
fadd dword [esp + 0x80]
fstp dword [esp + 0x40]
fmul qword [0x4bc320]
fst dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul qword [0x4bc320]
fst dword [esp + 0x3c]
fld dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
fmul qword [0x4bc320]
mov dword [esp + 0x60], edx
fst dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
fld st(2)
fstp dword [esp + 0x68]
mov eax, ecx
fld st(1)
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x6c]
lea ecx, [esp + 0x74]
push ecx
fstp dword [esp + 0x74]
push str.spawnflags
fld st(1)
push ebx
fstp dword [esp + 0x50]
mov dword [esp + 0x70], eax
fstp dword [esp + 0x54]
fstp dword [esp + 0x68]
call fcn.004a8d00
mov eax, dword [esp + 0x80]
add esp, 0x20
test al, 1
je 0x4a62fb
xor eax, eax
jmp 0x4a6304
and al, 2
neg al
sbb eax, eax
add eax, 2
fld dword [esp + eax*4 + 0x48]
lea ecx, [esp + eax*4 + 0x48]
fsub dword [esp + 0x20]
lea eax, [esp + eax*4 + 0x30]
sub esp, 8
sub esp, 8
fstp dword [ecx]
sub esp, 8
fld dword [esp + 0x38]
sub esp, 8
fadd dword [eax]
sub esp, 8
sub esp, 8
mov dword [esp + 0xb0], ecx
fstp dword [eax]
mov dword [esp + 0xac], eax
fld dword [esp + 0x68]
fstp qword [esp + 0x28]
fld dword [esp + 0x64]
fstp qword [esp + 0x20]
fld dword [esp + 0x60]
fstp qword [esp + 0x18]
fld dword [esp + 0x80]
fstp qword [esp + 0x10]
fld dword [esp + 0x7c]
fstp qword [esp + 8]
fld dword [esp + 0x78]
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.004951e0
fld dword [esp + 0x7c]
fsub dword [esp + 0x64]
add esp, 0x38
lea eax, [esp + 0xc4]
mov ecx, 4
fld st(0)
fadd dword [esp + 0x50]
fadd dword [0x4bcdb4]
mov edx, dword [esp + 0x48]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
fst dword [eax + 4]
add eax, 0xc
dec ecx
jne 0x4a639e
fstp st(0)
mov eax, dword [esp + 0xc8]
fld dword [esp + 0x3c]
mov dword [esp + 0x138], eax
fsub dword [esp + 0x24]
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0x3f800000
fld st(0)
lea eax, [esp + 0xf4]
fadd dword [esp + 0xc0]
mov ecx, 4
fstp dword [esp + 0xc0]
fld dword [esp + 0x40]
fsub dword [esp + 0x28]
fst dword [esp + 0x18]
fadd dword [esp + 0xc4]
fstp dword [esp + 0xc4]
fld st(0)
fadd dword [esp + 0xcc]
fstp dword [esp + 0xcc]
fld dword [esp + 0x68]
fsub dword [esp + 0x28]
fst dword [esp + 0x10]
fadd dword [esp + 0xd0]
fstp dword [esp + 0xd0]
fld dword [esp + 0x64]
fsub dword [esp + 0x24]
fst dword [esp + 0x14]
fadd dword [esp + 0xd8]
fstp dword [esp + 0xd8]
fld dword [esp + 0x10]
fadd dword [esp + 0xdc]
fstp dword [esp + 0xdc]
fld dword [esp + 0x14]
fadd dword [esp + 0xe4]
fstp dword [esp + 0xe4]
fld dword [esp + 0x18]
fadd dword [esp + 0xe8]
fstp dword [esp + 0xe8]
fld st(1)
fadd dword [esp + 0x38]
fadd dword [0x4bcdb4]
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 0x4a64a9
fstp st(0)
mov eax, dword [esp + 0xf8]
fld st(0)
mov edx, dword [esp + 0x4c]
fadd dword [esp + 0xf0]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xac], edx
mov dword [esp + 0x14c], eax
fstp dword [esp + 0xf0]
mov eax, dword [esp + 0x30]
fld dword [esp + 0x18]
mov dword [esp + 0xa8], ecx
fadd dword [esp + 0xf4]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xa8]
push edx
fstp dword [esp + 0xf8]
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
fadd dword [esp + 0x100]
mov dword [esp + 0x14c], 0x3f800000
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
fstp dword [esp + 0x100]
fld dword [esp + 0x14]
fadd dword [esp + 0x104]
fstp dword [esp + 0x104]
fld dword [esp + 0x18]
fadd dword [esp + 0x10c]
fstp dword [esp + 0x10c]
fld dword [esp + 0x14]
fadd dword [esp + 0x110]
fstp dword [esp + 0x110]
fld dword [esp + 0x18]
fadd dword [esp + 0x118]
fstp dword [esp + 0x118]
fld dword [esp + 0x1c]
fadd dword [esp + 0x11c]
fstp dword [esp + 0x11c]
fld dword [esp + 0x54]
fadd st(1)
fadd dword [0x4bcdb4]
fstp dword [esp + 0xb4]
fld dword [esp + 0x3c]
fadd st(1)
fadd dword [0x4bcdb4]
fstp dword [esp + 0xa8]
fstp st(0)
call fcn.004a9470
add esp, 4
test eax, eax
je 0x4a69b7
lea eax, [esp + 0x9c]
push eax
call fcn.004a9470
add esp, 4
test eax, eax
je 0x4a69b7
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
test eax, eax
push 1
jne 0x4a6651
lea ecx, [esp + 0x130]
push ecx
lea edx, [esp + 0xc8]
push 4
push edx
call fcn.004a5c50
mov esi, eax
push 0
lea eax, [esp + 0x154]
push eax
lea ecx, [esp + 0x108]
push 4
push ecx
mov dword [esp + 0x34], esi
call fcn.004a5c50
mov ebp, eax
add esp, 0x20
mov dword [esp + 0x18], ebp
jmp 0x4a6692
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0xf8]
push 4
push eax
call fcn.004a5c50
push 0
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0xd8]
push 4
push edx
mov dword [esp + 0x34], eax
call fcn.004a5c50
mov esi, dword [esp + 0x34]
add esp, 0x20
mov dword [esp + 0x18], eax
mov ebp, eax
test esi, esi
mov edi, esi
je 0x4a696e
test ebp, ebp
mov eax, dword [edi + 0x2c]
mov dword [esp + 0xb8], eax
je 0x4a6964
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 + 0xc0], esi
call fcn.004951e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x4a66ee
mov edx, dword [esp + 0xac]
fld dword [esp + 0xa8]
mov dword [esp + 0x158], edx
jmp 0x4a6703
mov eax, dword [esp + 0xa0]
fld dword [esp + 0x9c]
mov dword [esp + 0x158], eax
fld dword [ebx]
lea ecx, [esp + 0x70]
fsub st(1)
push ecx
fstp dword [esp + 0x74]
fstp st(0)
fld dword [edi + 0x10]
mov dword [esp + 0x7c], 0
fsub dword [esp + 0x15c]
fstp dword [esp + 0x78]
call fcn.0042c7d0
mov edx, dword [ebx]
fstp st(0)
fld dword [esp + 0x74]
mov dword [esp + 0x94], edx
mov eax, dword [edi + 0x10]
mov dword [esp + 0x98], eax
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x9c], ecx
fadd dword [ebx]
push 0xa
lea edx, [esp + 0x168]
fstp dword [esp + 0x98]
push edx
fld dword [esp + 0x80]
lea eax, [esp + 0x1e4]
fadd dword [edi + 0x10]
push eax
lea ecx, [esp + 0x94]
push ecx
fstp dword [esp + 0xa8]
lea edx, [esp + 0xa4]
fld dword [esp + 0x8c]
push edx
fadd dword [edi + 0x14]
fadd dword [0x4bc318]
fstp dword [esp + 0xb0]
fld dword [esp + 0x88]
fmul dword [0x4bc2f8]
fadd dword [ebx]
fstp dword [esp + 0x9c]
fld dword [esp + 0x8c]
fmul dword [0x4bc2f8]
fadd dword [edi + 0x10]
fstp dword [esp + 0xa0]
fld dword [esp + 0x90]
fmul dword [0x4bc2f8]
fadd dword [edi + 0x14]
fadd dword [0x4bc318]
fstp dword [esp + 0xa4]
call fcn.004a9d90
add esp, 0x18
test eax, eax
jle 0x4a6947
cmp eax, 1
jle 0x4a681e
mov eax, dword [esp + 0x16c]
mov dword [ebx], eax
mov ecx, dword [esp + 0x170]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0x174]
jmp 0x4a6838
mov eax, dword [esp + 0x84]
mov dword [ebx], eax
mov ecx, dword [esp + 0x88]
mov dword [edi + 0x10], ecx
mov edx, dword [esp + 0x8c]
push ebx
mov dword [edi + 0x14], edx
call fcn.004a9470
add esp, 4
test eax, eax
je 0x4a6947
lea eax, [ebp + 0x18]
push eax
call fcn.004a9470
add esp, 4
test eax, eax
je 0x4a6947
call fcn.004a08e0
mov esi, eax
mov eax, dword [ebp]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a688f
mov ecx, dword [esp + 0x80]
fld dword [ecx]
call fcn.004aeed0
mov edx, dword [esp + 0x7c]
fld dword [edx]
mov ebx, eax
shl ebx, 0x10
jmp 0x4a68a8
mov eax, dword [esp + 0x7c]
fld dword [eax]
call fcn.004aeed0
mov ecx, dword [esp + 0x80]
fld dword [ecx]
mov ebx, eax
shl ebx, 0x10
call fcn.004aeed0
and eax, 0xffff
or ebx, eax
mov eax, dword [esp + 0xbc]
mov dword [esi + 8], ebx
mov edx, dword [esp + 0x60]
shl edx, 0x10
or edx, eax
mov dword [esi + 4], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
lea ebx, [edi + 0xc]
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 eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0x20]
push eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], 0x13
call fcn.004a4b30
mov ecx, dword [esi + 0x24]
or ecx, eax
mov dword [esi + 0x24], ecx
fld dword [0xc68904]
add esp, 4
call fcn.004aeed0
mov word [esi + 0x28], ax
mov eax, dword [0xc68838]
mov edx, dword [0xc68810]
inc eax
mov dword [0xc68838], eax
mov ecx, dword [edi]
mov eax, dword [edx + ecx*4]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi]
mov edx, dword [0xc68810]
mov dword [edx + ecx*4], esi
mov esi, dword [esp + 0xb4]
test esi, esi
mov ebp, esi
jne 0x4a66b1
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0xb8]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
test eax, eax
mov edi, eax
jne 0x4a669c
test esi, esi
mov eax, esi
je 0x4a6986
mov edi, dword [eax + 0x2c]
push eax
call fcn.004a0920
add esp, 4
test edi, edi
mov eax, edi
jne 0x4a6974
test ebp, ebp
mov eax, ebp
je 0x4a699e
mov edi, dword [eax + 0x2c]
push eax
call fcn.004a0920
add esp, 4
test edi, edi
mov eax, edi
jne 0x4a698c
test byte [esp + 0x60], 3
je 0x4a69b7
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x4a6606
push ebx
call fcn.004a8b10
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4a60db
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret