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

Disassembly:
cmp dword [0xc39168], 3
jne 0x408dc8
mov dword [0xc39168], 4
call fcn.00406a00
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test bl, 1
je 0x408dde
call fcn.0040d180
shl eax, 8
or ebx, eax
test bh, 0x80
je 0x408dff
call fcn.0040d180
shl eax, 0x10
or ebx, eax
test ebx, 0x800000
je 0x408dff
call fcn.0040d180
shl eax, 0x18
or ebx, eax
test bh, 0x40
je 0x408e0b
call fcn.0040d1c0
jmp 0x408e10
call fcn.0040d180
push eax
call fcn.004083e0
add esp, 4
mov esi, eax
xor ecx, ecx
mov eax, 0xc37f80
mov edx, 1
shl edx, cl
test ebx, edx
je 0x408e2f
inc dword [eax]
add eax, 4
inc ecx
cmp eax, 0xc37fc0
jl 0x408e22
fld qword [esi + 0x38]
fcomp qword [0xc3b958]
fnstsw ax
test ah, 0x40
jne 0x408e51
mov ebp, 1
jmp 0x408e53
xor ebp, ebp
mov eax, dword [0xc3b950]
push edi
mov dword [esi + 0x38], eax
mov ecx, dword [0xc3b954]
test bh, 4
mov dword [esi + 0x3c], ecx
je 0x408e88
call fcn.0040d180
mov edi, eax
cmp edi, 0x100
jl 0x408e8b
push str.CL_ParseModel:_bad_modnum
call fcn.004294a0
add esp, 4
jmp 0x408e8b
mov edi, dword [esi + 0x24]
mov eax, dword [edi*4 + 0xc3b988]
mov ecx, dword [esi + 0x88]
cmp eax, ecx
pop edi
je 0x408ee6
test eax, eax
mov dword [esi + 0x88], eax
je 0x408ee1
cmp dword [eax + 0x4c], 1
jne 0x408ed5
call fcn.0048c2af
and eax, 0x7fff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fdiv dword [0x497040]
fstp dword [esi + 0x98]
jmp 0x408ee6
mov dword [esi + 0x98], 0
jmp 0x408ee6
mov ebp, 1
test bl, 0x40
je 0x408ef8
call fcn.0040d180
mov dword [esi + 0x90], eax
jmp 0x408f01
mov edx, dword [esi + 0x28]
mov dword [esi + 0x90], edx
test bh, 8
je 0x408f0d
call fcn.0040d180
jmp 0x408f10
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x408f21
mov eax, dword [0x9cc984]
mov dword [esi + 0x9c], eax
jmp 0x408f5e
mov ecx, dword [0xc3c1b4]
cmp eax, ecx
jle 0x408f3e
push ecx
push eax
push str.CL_ParseUpdate:_i___cl.maxclients:__i____i
call fcn.004294a0
add esp, 0xc
pop esi
pop ebp
pop ebx
ret
mov ecx, eax
shl ecx, 9
add ecx, eax
lea edx, [eax + ecx*4]
mov ecx, dword [0xc3c338]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*4 - 0x4000]
mov dword [esi + 0x9c], edx
test bh, 0x10
je 0x408f6a
call fcn.0040d180
jmp 0x408f6d
mov eax, dword [esi + 0x30]
test bh, 0x20
mov dword [esi + 0xac], eax
je 0x408f93
call fcn.0040d180
mov ecx, dword [esi + 0xa8]
and ecx, 0xff00
or eax, ecx
mov dword [esi + 0xa8], eax
jmp 0x408f9c
mov edx, dword [esi + 0x34]
mov dword [esi + 0xa8], edx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x54], edx
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x70], eax
test bl, 2
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
je 0x408fcf
call fcn.0040d300
fstp dword [esi + 0x40]
jmp 0x408fd5
mov eax, dword [esi + 0xc]
mov dword [esi + 0x40], eax
test bh, 1
je 0x408fe4
call fcn.0040d330
fstp dword [esi + 0x64]
jmp 0x408fea
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x64], ecx
test bl, 4
je 0x408ff9
call fcn.0040d300
fstp dword [esi + 0x44]
jmp 0x408fff
mov edx, dword [esi + 0x10]
mov dword [esi + 0x44], edx
test bl, 0x10
je 0x40900e
call fcn.0040d330
fstp dword [esi + 0x68]
jmp 0x409014
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x68], eax
test bl, 8
je 0x409023
call fcn.0040d300
fstp dword [esi + 0x48]
jmp 0x409029
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x48], ecx
test bh, 2
je 0x409038
call fcn.0040d330
fstp dword [esi + 0x6c]
jmp 0x40903e
mov edx, dword [esi + 0x20]
mov dword [esi + 0x6c], edx
test bl, 0x20
je 0x40904a
mov dword [esi + 4], 1
test ebp, ebp
je 0x409091
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x60], edx
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], edx
mov dword [esi + 4], 1
pop esi
pop ebp
pop ebx
ret