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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [0xbbec98]
push ebx
mov ebx, ecx
xor ecx, ecx
add ebx, 0x30
cmp edx, 0x23
sete cl
test eax, eax
push esi
push edi
mov dword [ebp - 8], ecx
je 0x401f41
lea esi, [eax + 0x30]
mov ecx, 0x34
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x401f51
push 0xd0
push 0
push ebx
call fcn.00451960
add esp, 0xc
push 0x927e80
call fcn.0041b400
add esp, 4
test al, 1
mov dword [ebp - 4], eax
je 0x401f74
push 0x927e80
call fcn.0041b3d0
add esp, 4
mov dword [ebx], eax
test byte [ebp - 4], 2
mov esi, dword [ebp - 8]
je 0x401fa4
test esi, esi
jne 0x401f85
or dword [ebp + 8], 8
push 0x927e80
call fcn.0041b400
push 0x927e80
mov word [ebx + 4], ax
call fcn.0041b400
add esp, 8
mov word [ebx + 6], ax
test byte [ebp + 8], 8
je 0x401fbb
push 0x927e80
call fcn.0041b400
add esp, 4
mov word [ebx + 8], ax
test byte [ebp - 4], 4
je 0x401fe8
test esi, esi
jne 0x401fc9
or dword [ebp + 8], 4
push 0x927e80
call fcn.0041b400
push 0x927e80
mov word [ebx + 0xa], ax
call fcn.0041b400
add esp, 8
mov word [ebx + 0xc], ax
test byte [ebp + 8], 4
je 0x401fff
push 0x927e80
call fcn.0041b400
add esp, 4
mov word [ebx + 0xe], ax
test byte [ebp - 4], 8
je 0x402015
push 0x927e80
call fcn.0041b3d0
add esp, 4
mov byte [ebx + 0x11], al
test byte [ebp - 4], 0x10
je 0x40202b
push 0x927e80
call fcn.0041b3d0
add esp, 4
mov byte [ebx + 0x10], al
test byte [ebp - 4], 0x20
je 0x402042
push 0x927e80
call fcn.0041b400
add esp, 4
mov word [ebx + 0x12], ax
test byte [ebp - 4], 0x40
je 0x402075
push 0x927e80
call fcn.0041b400
push 0x927e80
mov word [ebx + 0x14], ax
call fcn.0041b400
push 0x927e80
mov word [ebx + 0x16], ax
call fcn.0041b400
add esp, 0xc
mov word [ebx + 0x18], ax
mov eax, dword [0xb44548]
test eax, eax
je 0x402084
mov dword [ebx], 4
mov al, byte [ebp - 4]
test al, al
jns 0x4020d9
push 0x927e80
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x28]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x2c]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 0xc
fmul dword [0x4618c4]
fstp dword [ebx + 0x30]
mov eax, dword [ebp - 4]
test ah, 1
je 0x402106
test esi, esi
jne 0x4020e9
or dword [ebp + 8], 0x10
push 0x927e80
call fcn.0041b730
fstp dword [ebx + 0x1c]
push 0x927e80
call fcn.0041b730
fstp dword [ebx + 0x20]
add esp, 8
test byte [ebp + 8], 0x10
je 0x40211c
push 0x927e80
call fcn.0041b730
fstp dword [ebx + 0x24]
add esp, 4
mov eax, dword [ebp - 4]
test ah, 2
je 0x402172
push 0x927e80
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x34]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x38]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 0xc
fmul dword [0x4618c4]
fstp dword [ebx + 0x3c]
mov eax, dword [ebp - 4]
test ah, 0x10
je 0x40218a
push 0x927e80
call fcn.0041b3d0
add esp, 4
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 4]
test ah, 0x20
je 0x4021aa
test esi, esi
jne 0x40219a
or dword [ebp + 8], 3
push 0x927e80
call fcn.0041b3d0
add esp, 4
mov dword [ebx + 0x5c], eax
test byte [ebp + 8], 1
je 0x4021fe
push 0x927e80
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x4c]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x50]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 0xc
fmul dword [0x4618c4]
fstp dword [ebx + 0x54]
test byte [ebp + 8], 2
je 0x402252
push 0x927e80
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x40]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c4]
fstp dword [ebx + 0x44]
call fcn.0041b3a0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 0xc
fmul dword [0x4618c4]
fstp dword [ebx + 0x48]
mov eax, dword [ebp - 4]
test ah, 4
je 0x4022c1
push 0x927e80
call fcn.0041b3d0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c0]
fstp dword [ebx + 0x60]
call fcn.0041b3d0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c0]
fstp dword [ebx + 0x64]
call fcn.0041b3d0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
push 0x927e80
fmul dword [0x4618c0]
fstp dword [ebx + 0x68]
call fcn.0041b3d0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 0x10
fmul dword [0x4618c0]
fstp dword [ebx + 0x6c]
mov eax, dword [ebp - 4]
test ah, 8
je 0x4022df
push 0x927e80
call fcn.0041b3d0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
add esp, 4
fstp dword [ebx + 0x70]
mov eax, dword [ebp - 4]
test ah, 0x40
je 0x4022f7
push 0x927e80
call fcn.0041b3d0
add esp, 4
mov dword [ebx + 0x74], eax
test esi, esi
je 0x4023a5
mov eax, dword [ebp - 4]
test ah, ah
jns 0x4023a9
push 0x927e80
call fcn.0041b400
mov edx, eax
and edx, 0x1f
shl edx, 3
mov dword [ebp - 8], edx
fild dword [ebp - 8]
mov ecx, eax
sar ecx, 5
and ecx, 0x1f
fld st(0)
neg ecx
fchs
shl ecx, 3
fst dword [ebx + 0xbc]
mov dword [ebp - 8], ecx
fst dword [ebx + 0xb8]
sar eax, 0xa
fld st(1)
and eax, 0x3f
fstp dword [ebx + 0xc8]
lea edx, [eax*8 - 0x20]
fld st(1)
sub esp, 0x2c
fstp dword [ebx + 0xc4]
fild dword [ebp - 8]
mov dword [ebp - 8], edx
fst dword [ebx + 0xc0]
fild dword [ebp - 8]
fst dword [ebx + 0xcc]
fstp qword [esp + 0x28]
fld st(2)
fstp qword [esp + 0x20]
fxch st(2)
fstp qword [esp + 0x18]
fxch st(1)
fstp qword [esp + 0x10]
fst qword [esp + 8]
fstp qword [esp]
push 1
push str.received_bbox_from_server:___f___f___f_____f___f___f__n
call fcn.0041ac50
add esp, 0x38
jmp 0x4023a9
or dword [ebp + 8], 0x20
test byte [ebp + 8], 0x20
je 0x4023ed
push 0x927e80
call fcn.0041b440
mov edi, eax
add esp, 4
test edi, edi
je 0x4023ed
xor esi, esi
add ebx, 0x78
mov eax, 1
mov ecx, esi
shl eax, cl
test edi, eax
je 0x4023e4
push 0x927e80
call fcn.0041b400
add esp, 4
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, 0x20
jl 0x4023c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret